how do you stop the player from dying

Started by slenered on

Topic category: Advanced modding

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do you stop the player from dying
Mon, 02/10/2020 - 18:43 (edited)

The title said all, how do you stop the player from dying?

Edited by slenered on Mon, 02/10/2020 - 18:43
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Erm, that's actually pretty…
Wed, 02/12/2020 - 23:30

Erm, that's actually pretty vague. It depends what the player is dying from and under what circumstances you want it to stop. Maybe you could use a procedure to add health or apply a potion effect?

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the command: …
Mon, 03/02/2020 - 20:14

You can use the command: /effect @p minecraft:resistance [time] 255 or you can use the procedure: add potion with level 255 and duration [time] to provided entity: resistance (under entity procedures)