Categories
Ask Games Video Games

How to give a player a item on respawn?

The method I have been taught no longer works in 1.15.2:

/scoreboard objectives add death deathCount

/scoreboard objectives add dummydeath dummy

/scoreboard players set @a[name=CrimsonCreates,scores={death=1}] dummydeath 3

/scoreboard players set @a[name=CrimsonCreates,scores={death=1}] death 0

/execute as @a[name=CrimsonCreates,scores={dummydeath=1..},nbt=!{Inventory:[{id:”minecraft:carrot_on_a_stick”,tag:{display:{Name:”[{\”text\”:\”Dash Attack\”}]”},Enchantments:[{id:”binding_curse”,lvl:1},{dash_attack:1b},{id:”vanishing_curse”,lvl:1}]}}]}] run scoreboard players remove @s dummydeath 1

/execute as @a[name=CrimsonCreates,scores={dummydeath=1..},nbt=!{Inventory:[{id:”minecraft:carrot_on_a_stick”,tag:{display:{Name:”[{\”text\”:\”Dash Attack\”}]”},Enchantments:[{id:”binding_curse”,lvl:1},{dash_attack:1b},{id:”vanishing_curse”,lvl:1}]}}]}] run give @s carrot_on_a_stick{display:{Name:”[{\”text\”:\”Dash Attack\”}]”},CustomModelData:10000002,Enchantments:[{id:”binding_curse”,lvl:1},{id:”vanishing_curse”,lvl:1}]} 1
/scoreboard players remove @a[name=CrimsonCreates,scores={dummydeath=1}] dummydeath 1

Is there any way to accomplish this task in the new update?

Leave a Reply

Your email address will not be published. Required fields are marked *