1

Maintain CanPlaceOn tag after breaking

E3R0's Avatar E3R010/27/20 7:58 am history
1 emeralds 36
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's Avatar
E3R0
Level 35 : Artisan Procrastinator
5

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome