Java Edition:Game Rule with Non-Default Value
A game rule with a non-default value is any game rule set to a value different than the default. Assuming the default game rule values are kept during world generation, the values cannot currently be changed in a world without using commands or external editing. Two methods from previous versions allow for game rules with discontinued values. First, if a world is updated into 19w36a (1.15 snapshot) five newly introduced game rules were all set to false by default, when four were intended to default to true. Second, in the April Fools' version 23w13a_or_b, vote proposals can be used to change most game rules.
Obtaining
19w36a False Game Rules
In 19w36a (1.15 snapshot), five game rules were added from Bedrock Edition for parity. Any world updated from 12w32a (game rules introduced) or later into 19w36a will have the drowningDamage, fallDamage, fireDamage, and doInsomnia game rules set to false due to a bug.[1] Any world created in 19w36a will correctly have these game rules set to true. In 19w37a, the default value for these game rules during an update was fixed to true.
All four of these game rules must be obtained together. The only way to undo the false game rules, outside of using commands or external editing, is in the April Fools' snapshot 23w13a_or_b. The effect of these game rules are:
- drowningDamage - The player will not take damage when drowning.
- fallDamage - The player will not take fall damage.
- fireDamage - The player will not take damage in fire or lava.[note 1]
- doInsomnia - No phantoms will naturally spawn in the world again, making them a discontinued feature in worlds with this game rule set to false. Phantoms are later obtainable in several April Fools' versions.[note 2]
Game Rule Votes
The April Fools' version 23w13a_or_b has two vote proposals that can modify the values of game rules. One vote switches binary game rules and the other vote can set the value of integer game rules. Some game rules can provide benefits and make the game easier to play. Others will discontinue the player's ability to obtain features in their world.
The "Flip game rule <GAME RULE>" (binary_gamerule_rule) vote allows for most boolean game rules to be flipped between false and true. The probability that a new vote will be this type is 1000/113008, which is approximately 0.885%.[note 3] This vote has an equally likely chance of selecting any of 34 binary game rules, listed below. This vote cannot flip the commandBlockOutput, logAdminCommands, sendCommandFeedback or spectatorsGenerateChunks game rules.
| Game Rule | Default Value | Notes |
|---|---|---|
doFireTick
|
true | |
mobGriefing
|
true | |
keepInventory
|
false | Flipping to true will make curse of binding carved pumpkins or mob heads impossible to remove from a player. |
doMobSpawning
|
true | Flipping to false will discontinue many mobs that only spawn naturally, along with their item drops and other features dependent on them. |
doMobLoot
|
true | Flipping to false will discontinue many items that only drop from mobs, along with other features dependent on them. |
doTileDrops
|
true | Flipping to false will discontinue all items that require block drops to obtain, along with other features dependent on them. |
doEntityDrops
|
true | |
naturalRegeneration
|
true | |
doDaylightCycle
|
true | Flipping to false will discontinue features dependent on the daylight cycle. For example, closed eyeblossoms if it is permanently night time. |
showDeathMessages
|
true | |
reducedDebugInfo
|
false | |
disableElytraMovementCheck
|
false | |
doWeatherCycle
|
true | Flipping to false can discontinue features dependent on the weather cycle. For example, charged creepers if it is permanently clear or raining (not a thunderstorm). |
doLimitedCrafting
|
false | |
announceAdvancements
|
true | |
disableRaids
|
false | Flipping to false discontinues raid related mobs, advancements, statistics, and the Hero of the Village status effect. |
doInsomnia
|
true | Flipping to false discontinues phantoms. |
doImmediateRespawn
|
false | |
drowningDamage
|
true | |
fallDamage
|
true | |
fireDamage
|
true | |
freezeDamage
|
true | |
doPatrolSpawning
|
true | |
doTraderSpawning
|
true | Flipping to false discontinues the wandering trader and trader llamas. |
doWardenSpawning
|
true | Flipping to false discontinues the warden. |
forgiveDeadPlayers
|
true | |
universalAnger
|
false | |
blockExplosionDropDecay
|
true | |
mobExplosionDropDecay
|
true | |
tntExplosionDropDecay
|
false | |
waterSourceConversion
|
true | |
lavaSourceConversion
|
false | |
globalSoundEvents
|
true | |
doVinesSpread
|
true |
The "Change value of game rule <GAME RULE> to <NUMBER>" (integer_gamerule_rule) vote allows for the value of most integer game rules to be changed. The probability that a new vote will be this type is 1000/113008, which is approximately 0.885%.[note 3] This vote has an equally likely chance of selecting any of 5 integer game rules, listed below. The range of integers allowed depends on the game rule. This vote cannot change the commandModificationBlockLimit or maxCommandChainLength game rules.
| Game Rule | Default Value | Minimum Vote Value | Maximum Vote Value | Notes |
|---|---|---|---|---|
snowAccumulationHeight
|
1 | 0 | 8 | Uniform distribution. |
playersSleepingPercentage
|
100 | 0 | 100 | Uniform distribution chosen from -20 to 120. If the random value is under 0 then it is set to 0 and if the random value is over 100 then it is set to 100. This gives 0 and 100 a higher chance of being chosen than the other possible integers. |
maxEntityCramming
|
24 | 0 | 100 | Uniform distribution. If set to 0, entity cramming is disabled. |
spawnRadius
|
10 | 1 | 100 | Uniform distribution. |
randomTickSpeed
|
3 | 0 | 20 | Uniform distribution. If set to 0, no blocks will ever receive random ticks, so crops won't grow, leaves won't decay, ice and snow won't melt, farmland won't hydrate, grass, mycelium, and mushrooms won't spread, turtle eggs won't hatch, lava won't set fires, dripstone won't grow, drip liquids or convert mud into clay, copper won't oxidize, budding amethyst won't grow, and more. This discontinues hydrated farmland. |
See also
Notes
- ↑ Lava will still cause damage in 19w36a due to MC-160498. This was fixed in the next snapshot, 19w37a.
- ↑ In 20w14∞ phantoms can spawn in other dimensions and then transported back to the overworld through the portal. In 22w13oneBlockAtATime and 23w13a_or_b, the phantom can be spawned after obtaining spawn eggs.
- ↑ 3.0 3.1
The probability that a certain vote appears is pulled from an internal weighted list in the game. For a full list of each vote's weight, see the list created by Captain_S0L0. The probability in the article only considers "simple votes", these are vote that are not a repeal vote nor a combined vote. Repeal votes are determined by the value set by
new_vote_repeal_vote_chance. The repeal vote chance defaults to 50% and can be set to any integer percentage from 20% to 80% (inclusive) by thenew_vote_repeal_vote_chancevote. When a vote is chosen to be a repeal vote, it cannot be the given vote type and so Probability of Given Vote = (1 - Probability of Repeal Vote) * Probability of Vote Type from Weighted List. If there are no applied votes to repeal or all applied votes already have a repeal vote targeting them, then whenever a new repeal vote chance occurs the vote will fail to generate. Combined votes of the form "[Vote A], but [Vote B]" can contain the given vote of interest. Thenew_vote_extra_effect_chancedetermines the probability that a new vote part will be added at each step and thenew_vote_extra_effect_max_countdetermines the maximum number of votes that can be added to a base vote. The extra effect chance defaults to 30% but can be set to any integer percentage from 0% to 80% using thenew_vote_extra_effect_chancevote. The max count defaults to 1 but can be set to any integer from 0 to 5 using thenew_vote_extra_effect_max_countvote. Together, these values determine the chance that the given vote will appear inside the combined votes. Combined votes can contain all types of votes, they use the same weighted list except the votes are removed as they are chosen since there can be no duplicate vote types. bluecrab2's 23w13a_or_b Vote Probability Calculator tool can be used to calculate the exact probability of a vote type appearing.
References