Minecraft Commands – How to Add Multiple Blocks to the “can_place_on” Tag

minecraft-bedrock-editionminecraft-commands

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.

Best Answer

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"]}}