How To add more health to a player when item is used

Started by TameableDEV on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How To add more health to a player when item is used

So I want to make it so that when I use an Item it will increase the players health by 1 heart point and when used again will add another. I've checked through all the forums and found nothing that could really help me. I know there is Attributes that you can change through commands in minecraft but I don't know how to.

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in a procedure you could try…
Wed, 02/22/2023 - 18:05

in a procedure you could try to execute the effect command and give the closest player health boost.

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the Attributes…
Thu, 02/23/2023 - 14:53

You can use the Attributes Plugin to add Health to the base value of the Attribute.