The weapon (An gold shovel named "Mystical Shovel") is in my inventory, I can move it around, and drop it, It has Curse of Vanishing so when I die, it disappears. When I die I become a "Ghost" that can't hit anyone, nor be hit. When I (as a Ghost) is turned back to a player, I get my shovel back.
But I don't want to be able to drop this certain item. I wanna be able to drop other things, but not that specific shovel, with that specific name. If this isn't possible with a few command blocks, please give me the closest thing. If you know how to make this happen using like, 5-15 command blocks, please detail what should be in what command block, where the commandblock should be, all the timing between the command blocks, and what command I'll have to manualy type.
PS: This is for 1.12.2
PPS: I already have the "Ghost" part fixed, all I need help with is the dropping thing.
I can think of 2 mistakes. Count tag and the name not being a json object. I mean you copied my old ocmmand, so maybe my mistake.
try this tho:
/execute as @e[type=item,nbt={Item:{id:"minecraft:trident",Count:1b,tag:{display:{Name:"{\"text\":\"Arondite\"}"}}}}] run data merge entity @s {PickupDelay:0}
Sadly still doesn't work
Thank you for trying anyway
EDIT: I fixed it! Thank you so much! Your command was entirely correct, however, the Trident was colored, bold and italic set to false. Everything worked when I included those things.
This is what I got:
The weapon (An gold shovel named "Mystical Shovel") is in my inventory, I can move it around, and drop it, It has Curse of Vanishing so when I die, it disappears. When I die I become a "Ghost" that can't hit anyone, nor be hit. When I (as a Ghost) is turned back to a player, I get my shovel back.
But I don't want to be able to drop this certain item. I wanna be able to drop other things, but not that specific shovel, with that specific name. If this isn't possible with a few command blocks, please give me the closest thing. If you know how to make this happen using like, 5-15 command blocks, please detail what should be in what command block, where the commandblock should be, all the timing between the command blocks, and what command I'll have to manualy type.
PS: This is for 1.12.2
PPS: I already have the "Ghost" part fixed, all I need help with is the dropping thing.
Already replied to you in here
You just have to add a new nbt detecting for the name
Thanks! But how do I add the new nbt? I'm not familiar in this category of commands, I am still learning.
EDIT: I tried this:
but that didn't work, I also tried
and
but nothing seems to work
third attempt was almost right. Inside of the item nbt, there is a tag called just tag:{} and that is for the items own nbt.
Working command:
/scoreboard players tag @e[type=item] add unthrowable {Item:{id:"minecraft:stone",tag:{display:{Name:"hello"}}}}
Thanks alot!
I've got this in a always active repeating command block:
/execute as @e[type=item,nbt={Item:{id:"minecraft:trident",tag:{display:{Name:"Arondite"}}}}] run data merge entity @s {PickupDelay:0}
But it doesn't seem to work, can you tell me why? I am on the 1.13 release btw.
I can think of 2 mistakes. Count tag and the name not being a json object. I mean you copied my old ocmmand, so maybe my mistake.
try this tho:
/execute as @e[type=item,nbt={Item:{id:"minecraft:trident",Count:1b,tag:{display:{Name:"{\"text\":\"Arondite\"}"}}}}] run data merge entity @s {PickupDelay:0}
Sadly still doesn't work
Thank you for trying anyway
EDIT: I fixed it! Thank you so much! Your command was entirely correct, however, the Trident was colored, bold and italic set to false. Everything worked when I included those things.