adding hp when using an item

Started by QUSY on

Topic category: Help with modding (Java Edition)

Last seen on 23:51, 7. Feb 2021
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
Last seen on 22:42, 25. Feb 2021
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

Last seen on 22:42, 25. Feb 2021
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")