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)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

 

Joined Oct 2019
Points:

User statistics:

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

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

Joined Mar 2021
Points:

User statistics:

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

dont use commands, not always recommended

Make it health boost along with instant health

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.