0

For example, how do I give 1 stone to myself that can be placed on grass and dirt? This is what I’ve got so far:

/give @s stone 1 0 {"can_place_on":{"blocks":["grass"]}}

I haven’t figured out how to add multiple blocks yet.

3

The square brackets indicate a list, in which you can include any number of elements separated by commas. For example:

/give @s stone 1 0 {"can_place_on":{"blocks":["grass","stone","sponge","dirt"]}}
0

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.