Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Game rules

Generated from the 26.2 decompile by tools/gen_reference.py. Do not edit by hand.

Every rule declared in GameRules, with its category (GameRuleCategory) and default. Integer rules list their bounds and any feature gate after the default. Values live in a GameRuleMap — a SavedData at data/minecraft/game_rules.dat, one set for the whole server rather than one per level. See Level data and rules.

59 rules

ruletypecategorydefault
command_block_output (GameRules.COMMAND_BLOCK_OUTPUT)Booleanchattrue
log_admin_commands (GameRules.LOG_ADMIN_COMMANDS)Booleanchattrue
send_command_feedback (GameRules.SEND_COMMAND_FEEDBACK)Booleanchattrue
show_advancement_messages (GameRules.SHOW_ADVANCEMENT_MESSAGES)Booleanchattrue
show_death_messages (GameRules.SHOW_DEATH_MESSAGES)Booleanchattrue
block_drops (GameRules.BLOCK_DROPS)Booleandropstrue
block_explosion_drop_decay (GameRules.BLOCK_EXPLOSION_DROP_DECAY)Booleandropstrue
entity_drops (GameRules.ENTITY_DROPS)Booleandropstrue
mob_drops (GameRules.MOB_DROPS)Booleandropstrue
mob_explosion_drop_decay (GameRules.MOB_EXPLOSION_DROP_DECAY)Booleandropstrue
projectiles_can_break_blocks (GameRules.PROJECTILES_CAN_BREAK_BLOCKS)Booleandropstrue
tnt_explosion_drop_decay (GameRules.TNT_EXPLOSION_DROP_DECAY)Booleandropsfalse
allow_entering_nether_using_portals (GameRules.ALLOW_ENTERING_NETHER_USING_PORTALS)Booleanmisctrue
command_blocks_work (GameRules.COMMAND_BLOCKS_WORK)Booleanmisctrue
global_sound_events (GameRules.GLOBAL_SOUND_EVENTS)Booleanmisctrue
max_block_modifications (GameRules.MAX_BLOCK_MODIFICATIONS)Integermisc32768 (min 1)
max_command_forks (GameRules.MAX_COMMAND_FORKS)Integermisc65536 (min 0)
max_command_sequence_length (GameRules.MAX_COMMAND_SEQUENCE_LENGTH)Integermisc65536 (min 0)
max_minecart_speed (GameRules.MAX_MINECART_SPEED)Integermisc8 (min 1, max 1000, requires FeatureFlags.MINECART_IMPROVEMENTS)
reduced_debug_info (GameRules.REDUCED_DEBUG_INFO)Booleanmiscfalse
spawner_blocks_work (GameRules.SPAWNER_BLOCKS_WORK)Booleanmisctrue
tnt_explodes (GameRules.TNT_EXPLODES)Booleanmisctrue
forgive_dead_players (GameRules.FORGIVE_DEAD_PLAYERS)Booleanmobstrue
max_entity_cramming (GameRules.MAX_ENTITY_CRAMMING)Integermobs24 (min 0)
mob_griefing (GameRules.MOB_GRIEFING)Booleanmobstrue
raids (GameRules.RAIDS)Booleanmobstrue
universal_anger (GameRules.UNIVERSAL_ANGER)Booleanmobsfalse
drowning_damage (GameRules.DROWNING_DAMAGE)Booleanplayertrue
elytra_movement_check (GameRules.ELYTRA_MOVEMENT_CHECK)Booleanplayertrue
ender_pearls_vanish_on_death (GameRules.ENDER_PEARLS_VANISH_ON_DEATH)Booleanplayertrue
fall_damage (GameRules.FALL_DAMAGE)Booleanplayertrue
fire_damage (GameRules.FIRE_DAMAGE)Booleanplayertrue
freeze_damage (GameRules.FREEZE_DAMAGE)Booleanplayertrue
immediate_respawn (GameRules.IMMEDIATE_RESPAWN)Booleanplayerfalse
keep_inventory (GameRules.KEEP_INVENTORY)Booleanplayerfalse
limited_crafting (GameRules.LIMITED_CRAFTING)Booleanplayerfalse
locator_bar (GameRules.LOCATOR_BAR)Booleanplayertrue
natural_health_regeneration (GameRules.NATURAL_HEALTH_REGENERATION)Booleanplayertrue
player_movement_check (GameRules.PLAYER_MOVEMENT_CHECK)Booleanplayertrue
players_nether_portal_creative_delay (GameRules.PLAYERS_NETHER_PORTAL_CREATIVE_DELAY)Integerplayer0 (min 0)
players_nether_portal_default_delay (GameRules.PLAYERS_NETHER_PORTAL_DEFAULT_DELAY)Integerplayer80 (min 0)
players_sleeping_percentage (GameRules.PLAYERS_SLEEPING_PERCENTAGE)Integerplayer100 (min 0)
pvp (GameRules.PVP)Booleanplayertrue
respawn_radius (GameRules.RESPAWN_RADIUS)Integerplayer10 (min 0)
spectators_generate_chunks (GameRules.SPECTATORS_GENERATE_CHUNKS)Booleanplayertrue
spawn_mobs (GameRules.SPAWN_MOBS)Booleanspawningtrue
spawn_monsters (GameRules.SPAWN_MONSTERS)Booleanspawningtrue
spawn_patrols (GameRules.SPAWN_PATROLS)Booleanspawningtrue
spawn_phantoms (GameRules.SPAWN_PHANTOMS)Booleanspawningtrue
spawn_wandering_traders (GameRules.SPAWN_WANDERING_TRADERS)Booleanspawningtrue
spawn_wardens (GameRules.SPAWN_WARDENS)Booleanspawningtrue
advance_time (GameRules.ADVANCE_TIME)Booleanupdatestrue
advance_weather (GameRules.ADVANCE_WEATHER)Booleanupdatestrue
fire_spread_radius_around_player (GameRules.FIRE_SPREAD_RADIUS_AROUND_PLAYER)Integerupdates128 (min -1)
lava_source_conversion (GameRules.LAVA_SOURCE_CONVERSION)Booleanupdatesfalse
max_snow_accumulation_height (GameRules.MAX_SNOW_ACCUMULATION_HEIGHT)Integerupdates1 (min 0, max 8)
random_tick_speed (GameRules.RANDOM_TICK_SPEED)Integerupdates3 (min 0)
spread_vines (GameRules.SPREAD_VINES)Booleanupdatestrue
water_source_conversion (GameRules.WATER_SOURCE_CONVERSION)Booleanupdatestrue