I am making a Minecraft Mini Game adventure map, and one of the levels has a /setblock
command, I am using the command in a way to spawn an item in a chest (Wooden Button) I need the wooden button to have CanPlaceOn
tag so it can be placed on a log.
I have tried this command:
setblock 294 5 -1251 minecraft:chest 0 replace {Items:[{Count:1,Slot:0,id:minecraft:wooden_button,CanPlaceOn:[log]}]}`