adding hp when using an item

Started by QUSY on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
adding hp when using an item
Sat, 01/30/2021 - 02:48 (edited)

When creating the mod, I ran into the problem that there is no procedure over the player that will add maximum hp when using the item.

program screenshot

Edited by QUSY on Sat, 01/30/2021 - 02:48
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If your trying to add hp…
Sun, 02/07/2021 - 23:55

If your trying to add hp like healing the player of missing hp you'll have to (get Max Health of target entity + "customNumber")

if your trying to add maximum hp, idk how

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, add the procedure to…
Sun, 02/07/2021 - 23:58

Sorry, add the procedure to a block of (set health of targetEntity to "insertHere")