I am working on making a vanilla Minecraft server but I want to prevent people from placing blocks at all. Is there any way?

  • Related (but not duplicate, since that one is narrower, requiring the solution to use Command Blocks): gaming.stackexchange.com/questions/124835/… Aug 1 '13 at 17:50
  • If you have a new question, please post it as a new question. Tacking your new question onto the end of another question doesn't work here. (I've removed the extra question from this post.) Aug 2 '13 at 8:37

Put the player in Adventure Mode with the command /gamemode <playername> a

  • 8
    This will prevent them from breaking blocks only. If they manage to get any blocks (say, by picking up blocks broken by a creeper), they'll be able to place them. Aug 1 '13 at 17:47
  • Also, on that same point, if they manage to use these blocks to make tools, they can break blocks then. Though I forgot about that change to Adventure Mode completely.
    – Unionhawk
    Aug 1 '13 at 22:46

My answer in the linked question is a viable solution for this as well.

Modify the following variable in the server.properties file:


Then OP yourself and anyone else you trust to place and destroy blocks. There must be at least one OP for spawn-protection to work.

  • When you say "at least one OP" do you mean on the list of OPs or has to be logged in?
    – Batophobia
    Aug 2 '13 at 4:30
  • 2
    @Batophobia No, as minecraftwiki.net/wiki/Server.properties states: If there are no ops set on the server, the spawn protection will be disabled automatically. (emphasis mine) So you only need to have declared at least on OP, but they not need to be logged in
    – Zommuter
    Aug 2 '13 at 6:14
  • How can this be modified to let enderchests be opened?
    – Cyanite17
    Oct 5 at 19:26

The answer is simple: if you do /gamemode adventure @a, than none of the players can place or break blocks.

I hope this helped you


Just turn Trust Players off. If you cannot, sorry!

  • Trust players is only for console systems, whether its playstation or xbox
    – Cyanite17
    Oct 5 at 19:25

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.