Skip to main content

Gamerules

Minecraft's built in game rules can be set via the <gamerules> module. Not all gamerules are supported, the table below lists which are supported.

info

When stopping the daylight cycle, you should either use the <doDaylightCycle> gamerule or the <timelock> module.

ElementDescription
<gamerules> </gamerules>Node containing the defined game rules.

Supported Gamerule Sub-elements

ElementDescriptionValue
<doFireTick>Toggles whether fire spread occurs.true/false
<doTileDrops>Toggles whether tile entities drop.true/false
<doMobLoot>Toggles whether mobs drop loot on death.true/false
<mobGriefing>Toggles whether mobs such as Creepers and Endermen cause enviromental damage.true/false
<naturalRegeneration>Toggles whether or not players naturally regain heath.true/false
<doDaylightCycle>Toggles whether or not time tick occurs.true/false

Example

<gamerules>
<doDaylightCycle>false</doDaylightCycle>
<naturalRegeneration>false</naturalRegeneration>
</gamerules>

Unsupported Gamerules

RuleDescription
doMobSpawningNot supported in favor of the Mob Spawning module.
keepInventoryNot supported since PGM already solves this with kits.
commandBlockOutputCommand blocks are not used in PGM.
logAdminCommandsNot useful in custom maps.
randomTickSpeedNot useful in custom maps.
reducedDebugInfoNot useful in custom maps.
sendCommandFeedbackNot useful in custom maps.
showDeathMessagesNot supported since PGM handles death messages.