Here is what I have so far, I need the command to find this specific item and teleport it back to me. (I don't want to turn on keep inventory because I want all of the other items to drop.)

/give CrimsonCreates minecraft:carrot_on_a_stick{display:{Name:"{\"text\":\"Dash Attack\"}"}}
/execute if entity @e[type=minecraft:item,nbt={}] run tp @s CrimsonCreates
  • Your problem will be that the chunks unload. They might even potentially unload in the same tick that you die in, meaning that it's going to get really hard to check which location you were even in before you died. It might be possible with /forceload by constantly un-forcing the chunks around you and forcing the chunk you're in and then move a marker armour stand with you and then wait for you to respawn, then teleport, … It's going to get pretty complicated. How about instead clearing the inventory of everyone who died and respawned except you? – Fabian Röling Dec 1 '19 at 0:40
  • I want the items of other players to still drop – user239801 Dec 1 '19 at 3:47
  • Could I make the item get destroyed when I die at create a new one when I respawn – user239801 Dec 1 '19 at 3:48
  • This could work by using /loot with the target spawn and the source kill: minecraft.gamepedia.com/Commands/loot – Fabian Röling Dec 1 '19 at 12:46
  • replaceitem entity CrimsonCreates weapon.offhand carrot_on_a_stick{display:{Name:"[{\"text\":\"Dash Attack\"}]"},Enchantments:[{id:"binding_curse",lvl:1},{id:"vanishing_curse",lvl:1}]} 1 – user239801 Dec 3 '19 at 4:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy