<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fgamerule</id>
	<title>Minecraft:Commands/gamerule - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fgamerule"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/gamerule&amp;action=history"/>
	<updated>2026-04-09T10:55:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/gamerule&amp;diff=49648&amp;oldid=prev</id>
		<title>imported&gt;ProBot: Bot: Adding pl:Polecenia/gamerule</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/gamerule&amp;diff=49648&amp;oldid=prev"/>
		<updated>2025-12-26T17:32:39Z</updated>

		<summary type="html">&lt;p&gt;Bot: Adding &lt;a href=&quot;/index.php?title=Pl:Polecenia/gamerule&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Pl:Polecenia/gamerule (page does not exist)&quot;&gt;pl:Polecenia/gamerule&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox command&lt;br /&gt;
|name=gamerule&lt;br /&gt;
|oplevel=&lt;br /&gt;
* 2 {{only|java|short=1}}&lt;br /&gt;
* 1 {{only|bedrock|short=1}}&lt;br /&gt;
|others=[[Minecraft:Cheat]] only for some rules{{only|bedrock|short=1}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Sets or queries a [[Minecraft:game rule]] value.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;gamerule &amp;lt;&amp;#039;&amp;#039;rule name&amp;#039;&amp;#039;&amp;gt; [&amp;lt;value&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;gamerule &amp;lt;rule: BoolGameRule&amp;gt; [value: Boolean]&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;gamerule &amp;lt;rule: IntGameRule&amp;gt; [value: int]&amp;lt;/code&amp;gt;&amp;lt;!--&lt;br /&gt;
: {{IN|bedrock}}, gamerules can also be changed in the world options and certain gamerules can be toggled on and off with the command without cheats enabled. This only works in singleplayer, server gamerules and server settings cannot be adjusted using the client settings, even if a player is opped.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
Arguments {{in|java}} are case sensitive. Arguments {{in|bedrock}} are shown for tab autocompletion as lowercase, but when typed are case-insensitive. &lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|&amp;#039;&amp;#039;rule name&amp;#039;&amp;#039;}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|rule: BoolGameRule|enum}} and {{argument|be=1|rule: IntGameRule|enum}}&lt;br /&gt;
: Specifies the game rule to set or query.&lt;br /&gt;
: Must be one of the predefined game rules; see [[Minecraft:Game rule]].&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|value}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|value: Boolean|enum}} and {{argument|be=1|value: int|int}}&lt;br /&gt;
: Specifies the value to set the game rule to. If not specified, queries the value of the game rule instead of setting it.&lt;br /&gt;
: Only &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; specified for predefined game rules can affect gameplay, except in the case of &amp;lt;code&amp;gt;maxEntityCramming&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;randomTickSpeed&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;spawnRadius&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;playersSleepingPercentage&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;functionCommandLimit&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;maxCommandChainLength&amp;lt;/code&amp;gt; where any integer (-2147483648~2147483647) affects gameplay; see [[Minecraft:Game rule]].&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
&lt;br /&gt;
{{Result table}}&lt;br /&gt;
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}}&lt;br /&gt;
{{Result table|succeed}}&lt;br /&gt;
{{Result table}}&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
{{Output table}}&lt;br /&gt;
{{Output table|edition=je|On success|1|1|the current value of the game rule}}&lt;br /&gt;
{{Output table|edition=be|On success|1}}&lt;br /&gt;
{{Output table}}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
* To stop the [[Minecraft:Daylight cycle|day-night cycle]]: &amp;lt;code&amp;gt;gamerule advance_time false&amp;lt;/code&amp;gt;&lt;br /&gt;
* To stop natural healing: &amp;lt;code&amp;gt;gamerule natural_health_regeneration false&amp;lt;/code&amp;gt;&lt;br /&gt;
* To stop creepers, ghasts and other [[Minecraft:mob]]s from modifying blocks: &amp;lt;code&amp;gt;gamerule mob_griefing false&amp;lt;/code&amp;gt;&lt;br /&gt;
* To stop the natural cycle of [[Minecraft:weather]]: &amp;lt;code&amp;gt;gamerule advance_weather false&amp;lt;/code&amp;gt;&lt;br /&gt;
* To make players keep all of their valuables when they die: &amp;lt;code&amp;gt;gamerule keep_inventory true&amp;lt;/code&amp;gt;&lt;br /&gt;
* To stop [[Minecraft:TNT]] from exploding: &amp;lt;code&amp;gt;gamerule tnt_explodes false&amp;lt;/code&amp;gt;&lt;br /&gt;
* To stop [[Minecraft:command block]]s from showing what they do: &amp;lt;code&amp;gt;gamerule command_block_output false&amp;lt;/code&amp;gt;&lt;br /&gt;
*To stop [[Minecraft:phantom]]s spawning:&amp;lt;code&amp;gt;gamerule spawn_phantoms false&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
=== &amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.4.2|dev=12w32a|Added {{cmd|gamerule|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.8|dev=14w29a|Added the ability to create custom dummy gamerules.}}&lt;br /&gt;
|{{HistoryLine||1.13|dev=17w45a|{{cmd|gamerule|link=none}} no longer accepts unknown values (dummy gamerules).&lt;br /&gt;
|Values to {{cmd|gamerule|link=none}} are now type-checked.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|pocket}}&lt;br /&gt;
|{{HistoryLine||1.0.5|dev=alpha 1.0.5.0|Added {{cmd|gamerule|link=none}}.}}&lt;br /&gt;
|{{HistoryLine|bedrock}}&lt;br /&gt;
|{{HistoryLine||?|Command segments &amp;lt;code&amp;gt;rule: BoolGameRule&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;rule: IntGameRule&amp;lt;/code&amp;gt; no longer accept dummy gamerules.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{cmd|mobevent}} – a command {{in|bedrock}} for controlling the spawning of raids, patrols, and wandering traders&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
* {{Cite|url=https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/gamerule?view=minecraft-bedrock-stable|title=&amp;lt;code&amp;gt;/gamerule&amp;lt;/code&amp;gt; Command|website=Microsoft Learn|date=January 5, 2024}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Befehl/gamerule]]&lt;br /&gt;
[[Minecraft:es:Comandos/gamerule]]&lt;br /&gt;
[[Minecraft:ja:コマンド/gamerule]]&lt;br /&gt;
[[Minecraft:ko:명령어/gamerule]]&lt;br /&gt;
[[Minecraft:pl:Polecenia/gamerule]]&lt;br /&gt;
[[Minecraft:pt:Comandos/gamerule]]&lt;br /&gt;
[[Minecraft:ru:Команды консоли/gamerule]]&lt;br /&gt;
[[Minecraft:uk:Команди консолі/gamerule]]&lt;br /&gt;
[[Minecraft:zh:命令/gamerule]]&lt;/div&gt;</summary>
		<author><name>imported&gt;ProBot</name></author>
	</entry>
</feed>