How to do something if a player dies a certain way

Started by _Pastel_ on

Topic category: Help with modding (Java Edition)

Last seen on 18:26, 12. Feb 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to do something if a player dies a certain way
Thu, 02/02/2023 - 21:58 (edited)

I am making a mod and i need it so if you die from this one block (using custom death) when you respawn you get custom armor, please help!

(2022.2)

Edited by _Pastel_ on Thu, 02/02/2023 - 21:58
Last seen on 22:05, 24. Apr 2024
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check when player dies to a…
Sun, 02/05/2023 - 02:44

Check when player dies to a specific thing and give them a variable.

If the player has this variable on global trigger "player respawn" then "set armor in slot -" 

Have not tried it but it should work with a procedure close to that.