CHRISTMAS SALE-30% OFFwithXMAS30

Minecraft Minecraft Updated Nov 9, 2025

How to Use Gamerules on Your Minecraft Server

Learn how to customize your Minecraft server gameplay using gamerules to control game mechanics, mob behavior, and world features.

Gamerules allow you to customize gameplay mechanics on your Minecraft server without using mods or plugins. You can control everything from mob spawning to weather cycles using simple commands. This guide shows you how to use gamerules and provides a reference of common gamerules and their effects.

Using Gamerules

Gamerules are changed using in-game commands. You must have operator permissions to run gamerule commands. See our guide on How to Grant Operator Permissions if you need OP status.

Basic gamerule syntax:

/gamerule <rule> <value>

Examples:

  • /gamerule doDaylightCycle false - Stops time from progressing
  • /gamerule keepInventory true - Players keep items when they die
  • /gamerule doMobSpawning false - Prevents mobs from spawning

Common Gamerules

Here are the most commonly used gamerules and their effects:

GameruleDefaultDescription
announceAdvancementstrueWhether advancements are announced in chat when earned
commandBlockOutputtrueWhether command blocks should output to chat
disableElytraMovementCheckfalseDisables the server checking if players are moving too fast with elytra
doDaylightCycletrueWhether the day-night cycle progresses
doEntityDropstrueWhether entities drop items when killed
doFireTicktrueWhether fire spreads and burns out naturally
doImmediateRespawnfalsePlayers respawn immediately without seeing the death screen
doInsomniatrueWhether phantoms spawn when players haven't slept
doLimitedCraftingfalseWhether players can only craft recipes they've unlocked
doMobLoottrueWhether mobs drop items when killed
doMobSpawningtrueWhether mobs spawn naturally
doPatrolSpawningtrueWhether pillager patrols spawn
doTileDropstrueWhether broken blocks drop as items
doTraderSpawningtrueWhether wandering traders spawn
doWeatherCycletrueWhether weather changes naturally
drowningDamagetrueWhether players take drowning damage
fallDamagetrueWhether players and mobs take fall damage
fireDamagetrueWhether players and mobs take fire damage
forgiveDeadPlayerstrueWhether angry mobs stop being angry when the targeted player dies
freezeDamagetrueWhether players take damage from freezing in powder snow
keepInventoryfalseWhether players keep their inventory when they die
maxCommandChainLength65536Maximum number of chained command blocks that can run in one tick
maxEntityCramming24Maximum number of entities that can be crammed into one block
mobGriefingtrueWhether mobs can modify the world (creeper explosions, endermen picking up blocks, etc.)
naturalRegenerationtrueWhether players regenerate health naturally when hunger is full
playersSleepingPercentage100Percentage of players that must sleep to skip the night
randomTickSpeed3How often random block updates occur (crop growth, grass spreading, etc.)
reducedDebugInfofalseWhether to show reduced information on the debug screen (F3)
sendCommandFeedbacktrueWhether command output is sent to players who run commands
showDeathMessagestrueWhether death messages appear in chat
spawnRadius10Radius around world spawn where players can spawn
spectatorsGenerateChunkstrueWhether spectators cause chunks to load
universalAngerfalseWhether angered neutral mobs attack any nearby player, not just the attacker

Troubleshooting

  • Cannot run gamerule commands. Ensure you have operator permissions. Use /op <playername> in the console to grant OP status.
  • Gamerule not taking effect. Some gamerules only affect new events (e.g., doMobSpawning won't remove existing mobs, only prevent new spawns). Double-check the gamerule value with /gamerule <rule>.
  • Gamerule not available. Some gamerules are version-specific. Ensure you're using the correct gamerule name for your Minecraft version.
  • Changes reset after restart. Gamerule changes are saved with the world data. If they reset, the world may not be saving properly or you may be loading a different world.
  • Players bypass gamerules. Creative mode and OP players may bypass some gamerule restrictions. Ensure players are in the correct game mode.

Using gamerules on your Minecraft server allows you to customize gameplay without installing mods or plugins. Whether you want to create a peaceful building environment or a challenging survival experience, gamerules give you precise control over game mechanics.

Continue Learning

Browse all Minecraft tutorials Explore our library of guides and tutorials
Get 10% off your first month Looking for a Minecraft server? Use code HELPCENTER at checkout.
Got Questions?

Frequently Asked Questions

Everything you need to know about our game server hosting. Can't find what you're looking for? Contact our support team.

How do I set up my game server?

Setting up your game server is simple and fast. After choosing your plan, follow our user-friendly setup guide, and your server will be up and running in minutes. We offer one-click modpack installation, automatic backups, and 24/7 support to ensure a smooth setup experience.

What kind of support do you offer?

We provide 24/7 expert support through live chat, ticket system, and knowledge base. Our knowledgeable team responds within 5 minutes on average and has 10+ years of experience managing game servers. We offer setup assistance, troubleshooting, and ongoing maintenance support.

What hardware do you use for hosting?

We offer two hardware tiers across our global datacenters. Our budget tier features AMD EPYC 7551 processors, while our performance tier uses the latest AMD Ryzen 9 7950X and 7950X3D processors. All servers feature NVMe SSD storage, DDR5 RAM, and dedicated CPU cores. Our infrastructure provides 99.9% uptime with full DDoS protection and automatic failover systems.

Can I add mods and plugins to my server?

Yes! We offer support for all popular server types including Forge, Fabric, and Paper for Minecraft, as well as mods for Rust, Valheim, and other games. You can install mods, modpacks, or plugins directly from our control panel. If you have any issues, our support team can help with installation and configuration.

Can I upgrade my server plan later?

Yes, you can upgrade or downgrade your server plan at any time with zero downtime. Our flexible scaling allows you to adjust RAM and CPU as your needs grow. Upgrades take effect immediately, and we prorate any billing changes to ensure you only pay for what you use.

What is your refund policy?

We offer a 7-day money-back guarantee on all hosting plans. If you're not completely satisfied with our service, you can request a full refund within the first week, no questions asked. We also offer prorated refunds for early cancellations after the initial period.

Do you offer DDoS protection?

Yes, all our servers include enterprise-grade DDoS protection at no extra cost. Our network can handle attacks up to 1Tbps and automatically filters malicious traffic. We use multiple layers of protection including rate limiting, traffic analysis, and real-time threat detection to keep your server running smoothly.

How fast is server setup?

Our servers are set up in under 10 minutes on average. We use automated provisioning systems and pre-configured templates to ensure instant deployment. Once your payment is confirmed, your server is automatically created, configured, and ready to play. No waiting, no manual setup required.

What locations do you offer?

We have datacenters in North America (Texas, Virginia, Canada), Europe (London, Germany, France, Finland), and more locations coming soon. All locations feature low-latency connections, high-speed internet, and redundant power systems. You can choose the location closest to your players for the best performance.

Do you offer automatic backups?

Yes, we provide automatic daily backups with 7-day retention at no extra cost. Backups are stored in separate datacenters for security and can be restored with one click. We also offer manual backup creation and custom backup schedules for all plans.
Support Team

Looking for a server?

Or talk with

Our Team