This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I'm trying to use the /data command to change what an item can be placed on. However the command isn't working. The command is;
/execute as @e[type=minecraft:item,nbt={Item:{id:"grass"}}] run data merge entity @s {CanPlaceOn:["minecraft:grass_block"]}
Any help with the command would be appreciated!
FIXED!!!
The command is:
/execute as @e[type=minecraft:item,nbt={Item:{id:"grass"}}] run data merge entity @s {Item:{tag:{CanPlaceOn:["minecraft:grass_block"]}}}
I'm trying to use the /data command to change what an item can be placed on. However the command isn't working. The command is;
/execute as @e[type=minecraft:item,nbt={Item:{id:"grass"}}] run data merge entity @s {CanPlaceOn:["minecraft:grass_block"]}
Any help with the command would be appreciated!
FIXED!!!
The command is:
/execute as @e[type=minecraft:item,nbt={Item:{id:"grass"}}] run data merge entity @s {Item:{tag:{CanPlaceOn:["minecraft:grass_block"]}}}