Is there a "add health procedure"

Started by 8BitBunnie on

Topic category: Help with MCreator software

Last seen on 05:19, 29. Jul 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a "add health procedure"
Sat, 05/14/2022 - 05:45 (edited)

Hey! I'm trying to make a life steal accessory item, and i need to add health to the player, anybody know how?
(my current code is:
Global Trigger: Entity attacked
if: or, is source entity (sub)type of player
          is source entity (sub)type of server player
do

and i'm trying to use the max healt hof event/target entity - current health of event/target entity

Edited by 8BitBunnie on Sat, 05/14/2022 - 05:45
Last seen on 17:59, 7. Jan 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
set health of x to <max(max…
Sat, 05/14/2022 - 14:52

set health of x to <max(max hp of entity, current hp of entity + damage)>?

Last seen on 05:19, 29. Jul 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where exactly would i put…
Fri, 05/20/2022 - 16:56

Where exactly would i put that line of code?

 

Last seen on 05:19, 29. Jul 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(ignore my above question) i…
Fri, 05/20/2022 - 17:02

(ignore my above question) i can't put a "<" smbol in set health of event/target entity to