How can I make a enchantment that increases the enities max health when armor with it is worn.

Started by Kenjisaurus on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Jul 2021
Points:
561

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
How can I make a enchantment that increases the enities max health when armor with it is worn.

I tried the health boost effect and it did not work as the health could not regen.

 

Active 1 year ago
Joined Oct 2019
Points:
685

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
/attribute @s minecraft…
Mon, 10/04/2021 - 02:42

/attribute @s minecraft:generic.max_health base set 40

Active 5 months ago
Joined Mar 2021
Points:
1015

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
dont use commands, not…
Tue, 10/05/2021 - 07:11

dont use commands, not always recommended

Make it health boost along with instant health

Active 1 year ago
Joined Oct 2019
Points:
685

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
Health boost effects don't…
Wed, 10/06/2021 - 16:53

Health boost effects don't stack. The armor would be useless near a beacon or vice versa. The player won't be able to use a health boost potion too. The best choice is to modify the attributes. If you don't want to use commands, you can use DTM's Toolkit - Attributes plugin for mcreator.