0

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.

  • I would assume that it's the same, but with barrier or barrier_block or similar. – Fabian Röling Feb 20 at 20:44
  • I would like to point out that, using the /give command, or any command really, will show suggestions based on what you've typed. When you type /give, for example, it shows a list of all items and blocks that can be obtained through the command. Typing /give @s bar automatically shows barrier as the only option available for that command. – ZachTalonGamesYT Feb 28 at 7:41
0

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.

| 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.