4

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/… – SevenSidedDie 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.) – SevenSidedDie Aug 2 '13 at 8:37
5

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

|improve this answer|||||
  • 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. – SevenSidedDie 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
5

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

Modify the following variable in the server.properties file:

spawn-protection=999999

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.

|improve this answer|||||
  • 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
1

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

|improve this answer|||||
-3

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

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