Gamerules control Minecraft world behaviour, such as keeping inventory after death, fire spread, daylight cycle, and mob griefing. These commands are run from Console and are saved to the world.
Run Gamerule Commands
- Start the server, then open Console in the control panel.
- Use this format:
gamerule ruleName value
- To keep player inventories after death, run:
gamerule keepInventory true
- To stop fire from spreading, run:
gamerule doFireTick false
If you change to a different world later, set the gamerules again for that world.

