I am trying to make a vanilla worldguard using command blocks in Minecraft 1.4.
In 1.3, players couldn't do anything while in adventure mode. Is there any way to put players in 1.3-style adventure mode?
Minecraft – completely prevent destroying blocks in adventure mode
minecraft-java-edition
Best Answer
The Mining Fatigue status effect at level 5 will completely prevent breaking blocks. Applying it to all players for a million seconds (12 days) will probably be plenty, and you can do that without mods by using a command block with the command
Make that trigger somehow at the beginning of your map, or on a slow timer, and you're good.
This won't prevent block breaking in Creative mode, but any Adventure or Survival mode players will be unable to break anything. (To get a command block type
/give @p 137
.)