1

Maintain CanPlaceOn tag after breaking

E3R0 10/27/20 7:58 am history
69
Hi,

So basically I'm creating a map where I need the player to be able to break and replace redstone with a special tool created by this command:
/give @p minecraft:golden_pickaxe{CanDestroy:[​redstone_wire],Unbreakable:1} 1

and the redstone would be created with this command:
/give @p minecraft:redstone_wire{CanPlaceOn:[​spruce_planks]} 1

My problem is that the CanPlaceOn tag doesn't remain after placing and breaking the block. I know there is a workaround using /data merge, but I haven't been able to get that to work. Any help?
Posted by
E3R0
Level 36 : Artisan Procrastinator
6

  Have something to say?

JoinSign in

Welcome