I'm trying to create my own minecraft server and I need barrier blocks to prevent players from going to certain places. I already know how to get command blocks but I don't know the command to get barrier blocks.
1 Answer
Use this command:
/give @s barrier
For some reason the namespaced ID of barriers isn't listed on its own wiki page, so I went to the list of Bedrock Edition data values to find it.
barrier
orbarrier_block
or similar.