Minecraft

Prevent Mobs from Destroying Your World

MinecraftΒ·March 22, 2026Β·9 min read

If you're tired of Creepers and other destructive mobs ruining your builds, don't worry! You can disable this feature on your Minecraft server using the gamerule command. In this guide, we show you how to do it.

creeper

Start your Minecraft server: Make sure your server is running. If you haven't started it yet, go to your control panel and click the button to start the server.

Access the server console: From your server control panel, access the console to enter commands.

consola

Type the following command in the console: In the server console, enter the following command to prevent mobs from destroying blocks:

/gamerule mobGriefing false

βœ”οΈ This command disables the ability of mobs to alter or destroy blocks.

Confirm the change: Once the command is executed, you will receive a message in the console confirming that the gamerule has been updated.

gamerule

With this setting, mobs like the following will no longer be able to destroy blocks:

  • Creepers (They won't make holes when exploding)
  • Endermen (They won't be able to pick up blocks)
  • Ghasts (Their fireballs won't damage the environment)

If at any point you want to allow mobs to destroy blocks again, just run the command:

/gamerule mobGriefing true

Conclusion

We hope this guide has been useful and remember, don't hesitate to ask on HolyHosting DiscordΒ or contact our support team.

Follow us on Twitter (@HolyHosting) to stay up to date.

holyhosting logo

Cheers!!🌟

StuffyΒ @ HolyHosting

Still have questions?

Come chat with us and we will get back to you as soon as possible!

Contact Support