0

I want to make a parkour map so when you finish a level it gives you a stone button that can be placed on a block. I've tried to use the following command:

/give @p minecraft:stone_button {CanPlaceOn:["minecraft:planks"]}

but it doesn't work.

1

Let’s look at the syntax for the /give command:

give <player> <item> [amount] [data] [dataTag]

You are missing the amount and data before your NBT.

Fixed command:

/give @p stone_button 1 0 {CanPlaceOn:["minecraft:planks"]}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.