3

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.

2
  • I would assume that it's the same, but with barrier or barrier_block or similar. Commented Feb 20, 2020 at 20:44
  • 1
    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. Commented Feb 28, 2020 at 7:41

1 Answer 1

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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