0

This is for my server, and I am trying to make it so that you can run around with your items, but can't place any blocks to grief. How do I do this with command blocks?

2
  • 2
    My suggestion would be to not even bother trying. Most servers come with options for spawn protection. Use that instead of trying to hack something together.
    – MBraedley
    Feb 16, 2016 at 2:58
  • As @MBraedley said, this is improbable. Even the default minecraft server.jar has spawn protection.
    – Judge2020
    Feb 16, 2016 at 3:20

3 Answers 3

2

You could change there gamemode to adventure when they are in the are of your spawn.

/gamemode @a[r=1000]

this could be the simplest way to do what you need.

2
  • OMG! I combed through google for an answer and found nothing! I tried everything! Thanks so much!!!!!!!
    – Kylun11
    Feb 17, 2016 at 22:44
  • You are welcome. Love to help.
    – Jason_
    Feb 17, 2016 at 23:57
1

One solution is to have a fill clock constantly cloning a regular lobby onto the one where the players are. This prevents people from making changes to your spawn, if you really want to use commands and commands only to do it.

2
  • Thank you. It will take a lot of work, put using setblock and clone, I think I will be able to do it.
    – Kylun11
    Feb 17, 2016 at 1:24
  • No problem! I'm new to the site and this question/answer thing helped me understand what's going on, so thank you as well!
    – Wombatorks
    Feb 17, 2016 at 18:25
1

If you want to prevent them from destroying blocks, you can just apply the effect mining fatigue with a lever higher of 5 on every player near the spawn with a command block.

1
  • Thats exactly how I made that part.
    – Kylun11
    Feb 17, 2016 at 1:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .