Skip to content

Game rules ​

/gamerule works like in Bedrock. Each world keeps its own rules in its level.dat, so worlds made with Minecraft keep theirs, and a rule changed in one world does not change the others.

/gamerule                         list the rules of your world
/gamerule keepinventory           show one rule
/gamerule keepinventory true      change it
/gamerule pvp false lobby         change it in another loaded world

The console uses the default world unless a world is named. Permission: pocketmine.command.gamerule (operators).

Rules only set the default outcome: plugins still get the events (deaths, damage, block breaking, explosions) and can change the result.

Rules ​

RuleDefaultEffect
dodaylightcycletrueTime of day advances.
doweathercycletrueWeather changes by itself.
domobspawningtrueMobs spawn naturally.
doinsomniatruePhantoms spawn for players who haven't slept.
dopatrolspawningtruePillager patrols spawn.
dotraderspawningtrueWandering traders spawn.
dofireticktrueFire spreads and burns out.
domobloottrueMobs drop items and experience.
dotiledropstrueBroken blocks drop items.
doentitydropstrueEntities such as minecarts and boats drop their item.
doimmediaterespawnfalseSkip the death screen.
keepinventoryfalsePlayers keep items and experience when they die.
naturalregenerationtruePlayers heal when their hunger bar is full.
mobgriefingtrueMobs change blocks (creeper explosions, endermen…).
tntexplodestrueTNT explodes.
tntexplosiondropdecayfalsetrue: only some of the blocks broken by TNT drop.
projectilescanbreakblockstrueProjectiles break blocks such as pointed dripstone and decorated pots.
respawnblocksexplodetrueBeds outside the Overworld and respawn anchors outside the Nether explode.
pvptruePlayers can hurt each other.
falldamage / firedamage / drowningdamage / freezedamagetrueEach kind of damage applies.
showcoordinatesfalseCoordinates on screen.
showdaysplayedfalseDays played on screen.
showdeathmessagestrueDeath messages in chat.
showtags / showbordereffect / showrecipemessagestrueClient display options (item tooltips, border particles, recipe toasts).
locatorbartrueThe bar showing the direction of the other players.
recipesunlocktrueRecipes are unlocked as you play (false: all of them from the start).
dolimitedcraftingfalseOnly unlocked recipes can be crafted.
randomtickspeed1Multiplies how fast crops grow, leaves decay, etc. (0 stops it).
playerssleepingpercentage100Share of the players who must sleep to skip the night.
spawnradius10Blocks around the world spawn where new players appear.
commandblocksenabled, commandblockoutput, sendcommandfeedback, maxcommandchainlength, functioncommandlimitCommand rules, kept with the world like in Bedrock.
  • mobs.disabled-worlds in pocketmine.yml: worlds with no mobs at all (no AI, spawning, patrols or raids), for lobbies. To only stop natural spawning, use /gamerule domobspawning false in that world.
  • difficulty and hardcore in server.properties.

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.