ArtemisPvPMinecraft Wiki Artemis PvP Wiki

Updated 23 October 2026. Facts on this page come from minecraft.wiki, minecraft.net and the live Artemis PvP server; sources are listed at the bottom.

Minecraft Game Rules: keep_inventory and More
General Minecraft

Minecraft Game Rules: keep_inventory and More

Game rules are world settings you change with /gamerule , such as /gamerule keep_inventory true to keep your items when you die. Java Edition renamed its game rules to snake_case in 1.21.11, so keepInventory is now keep_inventory, doDaylightCycle is advance_time and doInsomnia is spawn_phantoms; Bedrock uses lowercase names like keepinventory.

How do you change a game rule?

Type /gamerule <rule> <value> (cheats or operator rights needed), or use the Edit Game Rules screen when creating a world on Java, or the world settings on Bedrock. On Bedrock some rules can be changed without cheats, which keeps achievements on.

Why did keepInventory stop working on Java?

It did not stop working; it was renamed. In 1.21.11 Java's game rules moved to snake_case names, and some were renamed outright:

  • keepInventory to keep_inventory, mobGriefing to mob_griefing
  • doDaylightCycle to advance_time, doWeatherCycle to advance_weather
  • doInsomnia to spawn_phantoms, doMobSpawning to spawn_mobs
  • naturalRegeneration to natural_health_regeneration, spawnRadius to respawn_radius
  • disableRaids to raids (with the value flipped)

See Mounts of Mayhem (1.21.11).

What can you do with game rules?

  • keep_inventory true: dying no longer costs you your items or experience.
  • advance_time false: the time of day stops moving; spawn_phantoms false: no phantoms.
  • players_sleeping_percentage: set it below 100 so not every player has to sleep to skip the night.
  • natural_health_regeneration false: no healing from a full hunger bar, as in UHC; see UHC.

Who sets the game rules on a server like ArtemisPvP?

On any server, game rules are set by its operators, not by players. ArtemisPvP's everyday player commands are in Essentials.

Frequently asked questions

How do you turn on keep inventory in Minecraft?

Java: /gamerule keep_inventory true (keepInventory before 1.21.11). Bedrock: /gamerule keepinventory true.

How do you stop phantoms?

Java: /gamerule spawn_phantoms false. Bedrock: /gamerule doinsomnia false.

Sources

Every fact on this page was checked against these pages; the wording is ours.