3

Attributes

TTVSpaceNerd1968 4/17/21 1:57 pm
402
4/18/2021 5:24 pm
Is there a command or a way you can keep modifiers or attributes when you die from something? Been trying to plug in different mods and different commands but nothing seems to be working. Please help(/attribute)
Posted by
TTVSpaceNerd1968
Level 22 : Expert Farmer
6

  Have something to say?

JoinSign in

2

TTVSpaceNerd1968
04/18/2021 5:24 pm
Level 22 : Expert Farmer
Thanks it worked
2
HoboMaggot
04/17/2021 11:01 pm
Level 55 : Grandmaster Blob
Nope. When a mob dies, all data disappears for that mob. For players, that data basically does the same thing and resets to its defaul values (keepinv, spawnpoint coords and item drop after death is the exception).

The only way to "keep" attributes after a player dies is:
  • Detect if player is dead and give them a tag (this may not work) or a score
  • Detect if the player is alive and has that tag/score and give them the attributes again. Remove tag/score afterwards
2

Welcome