1
My friend and I are creating a Spleef minigame. Our progress is good, but I'm having trouble with something:
The tool we're using to 'Spleef' with is a diamond pickaxe named Spleef!
I am trying to make it so you can not drop the pickaxe, but I am having no luck. The command I'm trying to use is;
/entitydata @e[type=Item] {PickupDelay:0,CustomName:"Spleef!"}
But whenever I activate it, it makes it so I can't drop ANY item.
Does ANYONE know where my mistake is? If you have any ideas and/or know what's wrong please let me know.
The tool we're using to 'Spleef' with is a diamond pickaxe named Spleef!
I am trying to make it so you can not drop the pickaxe, but I am having no luck. The command I'm trying to use is;
/entitydata @e[type=Item] {PickupDelay:0,CustomName:"Spleef!"}
But whenever I activate it, it makes it so I can't drop ANY item.
Does ANYONE know where my mistake is? If you have any ideas and/or know what's wrong please let me know.
2
I think you need to tag the item and then execute the entitydata command. Something like this I think.
repeat, always active
/scoreboard players tag @e[type=Item] add keep {Item:{tag:{display:{Name:"Spleef!"}}}}
and then,
chain, always active
/entitydata @e[tag=keep] {PickupDelay:0}
repeat, always active
/scoreboard players tag @e[type=Item] add keep {Item:{tag:{display:{Name:"Spleef!"}}}}
and then,
chain, always active
/entitydata @e[tag=keep] {PickupDelay:0}
It works!
Thank you so much for suggesting this. I might not have found what I was looking for if you hadn't commented on this.
Thank you so much for suggesting this. I might not have found what I was looking for if you hadn't commented on this.
