Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/forceload: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 1: Line 1:
{{MC/For|the [[Minecraft:Bedrock Edition]] equivalent|Commands/tickingarea}}{{MC/Exclusive|java}}
{{For|the [[Minecraft:Bedrock Edition]] equivalent|Commands/tickingarea}}{{exclusive|java}}
{{Infobox command
{{Infobox command
|name=forceload
|name=forceload
Line 5: Line 5:
}}
}}


Force chunks to load constantly or not, or lists/queries forceloaded chunks.
Force [[Minecraft:chunk]]s to load constantly or not, or lists/queries forceloaded chunks.


== Usage ==
== Usage ==
{{MC/See also|Chunk}}
{{See also|Chunk}}
Forced chunks get load ticket with load level of 31, the same level as the ticket caused by a player, which means that the said chunks process all aspects of the game, while adjacent chunks get activated by the load level's spreading. But since it increases its load level per chunk when spreading, adjacent chunks don't process every aspect of the game as well.
Forced chunks get load ticket with load level of 31, the same level as the ticket caused by a player, which means that the said chunks process all aspects of the game, while adjacent chunks get activated by the load level's spreading. But since it increases its load level per chunk when spreading, adjacent chunks don't process every aspect of the game as well.


As of version 1.21.5, crops do grow in forceloaded chunks even without a nearby player.  Blocks in forceloaded chunks receive random ticks (see [[Minecraft:Tick#Chunk_tick|chunk ticks]]) and process all updates except for mob spawning, lightning strikes, and fire spreading (unless game rule {{MC/Cd|allowFireTicksAwayFromPlayer}} is set to true).
As of [[Minecraft:Java_Edition_1.21.5#Blocks_2|version 1.21.5]], crops do grow in forceloaded chunks even without a nearby player.  Blocks in forceloaded chunks receive random ticks (see [[Minecraft:Tick#Chunk_tick|chunk ticks]]) and process all updates except for mob spawning, lightning strikes, and fire spreading (unless game rule {{cd|allowFireTicksAwayFromPlayer}} is set to true).


Coordinates are actually [[Minecraft:Coordinates#Block position|block coordinates]]. In order to forceload chunks 0,0 to 1,2, the player should use commands like {{MC/Code|/forceload add 0 0 31 47}}, which loads chunks 0,0 to 1,2 (1,2 inclusive, 2×3 chunks). When using {{MC/Code|/forceload add 0 0 10 30}} chunks 0,0 to 0,1 are actually loaded (one chunk equals 16×16 blocks on x/z axis).
Coordinates are actually [[Minecraft:Coordinates#Block position|block coordinates]]. In order to forceload chunks 0,0 to 1,2, the [[Minecraft:player]] should use commands like {{code|/forceload add 0 0 31 47}}, which loads chunks 0,0 to 1,2 (1,2 inclusive, 2×3 chunks). When using {{code|/forceload add 0 0 10 30}} chunks 0,0 to 0,1 are actually loaded (one chunk equals 16×16 blocks on x/z axis).


Similarly, {{MC/Code|/forceload query}} uses block coordinates as well.
Similarly, {{code|/forceload query}} uses block coordinates as well.


==Syntax==
==Syntax==
Line 30: Line 30:
==Arguments==
==Arguments==


{{MC/Argument|from|column_pos}} and {{MC/Argument|to|column_pos}}
{{argument|from|column_pos}} and {{argument|to|column_pos}}
: Specifies the targeted chunks based on block position.
: Specifies the targeted chunks based on block position.
: {{MC/Arg desc|je=column_pos}}
: {{arg desc|je=column_pos}}


{{MC/Argument|pos|column_pos}}
{{argument|pos|column_pos}}
: Specifies a chunk to query based on block position.
: Specifies a chunk to query based on block position.
: {{MC/Arg desc|je=column_pos}}
: {{arg desc|je=column_pos}}


==Result==
==Result==
Line 52: Line 52:
== Output ==
== Output ==


{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|cmd=/forceload add ...|On success|1|1|the number of forceloaded chunks that is newly added.}}
{{Output table|cmd=/forceload add ...|On success|1|1|the number of forceloaded chunks that is newly added.}}
{{MC/Output table|cmd=/forceload remove <from> [<to>]|On success|1|1|the number of forceloaded chunks that is successfully removed.}}
{{Output table|cmd=/forceload remove <from> [<to>]|On success|1|1|the number of forceloaded chunks that is successfully removed.}}
{{MC/Output table|cmd=/forceload remove all|On success|1|1|0}}
{{Output table|cmd=/forceload remove all|On success|1|1|0}}
{{MC/Output table|cmd=/forceload query|On success|1|1|The number of forceloaded chunks in the current dimension.}}
{{Output table|cmd=/forceload query|On success|1|1|The number of forceloaded chunks in the current dimension.}}
{{MC/Output table|cmd=/forceload query <pos>|On success|1|1|1}}
{{Output table|cmd=/forceload query <pos>|On success|1|1|1}}
{{MC/Output table}}
{{Output table}}


== History ==
== History ==


{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.13.1|dev=18w31a|Added {{MC/Cmd|chunk|link=none}}.}}
|{{HistoryLine||1.13.1|dev=18w31a|Added {{cmd|chunk|link=none}}.}}
|{{HistoryLine|||dev=pre1|Renamed {{MC/Cmd|chunk|link=none}} to {{MC/Cmd|link=none|forceload}}.}}
|{{HistoryLine|||dev=pre1|Renamed {{cmd|chunk|link=none}} to {{cmd|link=none|forceload}}.}}
|{{HistoryLine||1.14.4|dev=pre4|{{MC/Cmd|forceload|link=none}} is now available up to permission level 2.}}
|{{HistoryLine||1.14.4|dev=pre4|{{cmd|forceload|link=none}} is now available up to permission level 2.}}
|{{HistoryLine||1.17|dev=20w45a|Chunks are now loaded asynchronously, so chunks selected by {{MC/Cmd|forceload|link=none}} are no longer guaranteed to be loaded on the same tick that the command is run.<ref>{{bug|MC-227930|resolution=WAI}}</ref>}}
|{{HistoryLine||1.17|dev=20w45a|Chunks are now loaded asynchronously, so chunks selected by {{cmd|forceload|link=none}} are no longer guaranteed to be loaded on the same tick that the command is run.<ref>{{bug|MC-227930|resolution=WAI}}</ref>}}
|{{HistoryLine||1.21.5|dev=25w06a|Any block loaded by a source of chunk loading (including {{MC/Cmd|link=none|forceload}}) may now receive random ticks, instead of just 8 chunks around players.}}
|{{HistoryLine||1.21.5|dev=25w06a|Any block loaded by a source of chunk loading (including {{cmd|link=none|forceload}}) may now receive random ticks, instead of just 8 chunks around players.}}
}}
}}


Line 75: Line 75:
<references/>
<references/>
== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


de:Befehl/forceload
[[Minecraft:de:Befehl/forceload]]
es:Comandos/forceload
[[Minecraft:es:Comandos/forceload]]
ja:コマンド/forceload
[[Minecraft:fr:Commandes/forceload]]
pt:Comandos/forceload
[[Minecraft:ja:コマンド/forceload]]
ru:Команды консоли/forceload
[[Minecraft:pt:Comandos/forceload]]
zh:命令/forceload
[[Minecraft:ru:Команды консоли/forceload]]
[[Minecraft:zh:命令/forceload]]

Latest revision as of 11:07, 6 July 2026

Template:ForTemplate:Exclusive Template:Infobox command

Force Minecraft:chunks to load constantly or not, or lists/queries forceloaded chunks.

Usage

Template:See also Forced chunks get load ticket with load level of 31, the same level as the ticket caused by a player, which means that the said chunks process all aspects of the game, while adjacent chunks get activated by the load level's spreading. But since it increases its load level per chunk when spreading, adjacent chunks don't process every aspect of the game as well.

As of version 1.21.5, crops do grow in forceloaded chunks even without a nearby player. Blocks in forceloaded chunks receive random ticks (see chunk ticks) and process all updates except for mob spawning, lightning strikes, and fire spreading (unless game rule Template:Cd is set to true).

Coordinates are actually block coordinates. In order to forceload chunks 0,0 to 1,2, the Minecraft:player should use commands like Template:Code, which loads chunks 0,0 to 1,2 (1,2 inclusive, 2×3 chunks). When using Template:Code chunks 0,0 to 0,1 are actually loaded (one chunk equals 16×16 blocks on x/z axis).

Similarly, Template:Code uses block coordinates as well.

Syntax

forceload add <from> [<to>]

Forces the chunk at the <from> block position (through the <to> block position, if set) in the dimension of the command's execution to be loaded constantly.

forceload remove <from> [<to>]

Unforces the chunk at the <from> block position (through the <to> block position, if set) in the dimension of the command's execution to be loaded constantly.

forceload remove all

Unforces all chunks in the dimension of the command's execution to be loaded constantly.

forceload query [<pos>]

If block coordinates are given, displays the specified chunk in the dimension of the command's execution is force loaded; otherwise, lists which chunks in the dimension of the command's execution are force loaded.

Arguments

Template:Argument and Template:Argument

Specifies the targeted chunks based on block position.
Template:Arg desc

Template:Argument

Specifies a chunk to query based on block position.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table

History

Template:HistoryTable

References

<references/>

Navigation

Template:Navbox commands

Minecraft:de:Befehl/forceload Minecraft:es:Comandos/forceload Minecraft:fr:Commandes/forceload Minecraft:ja:コマンド/forceload Minecraft:pt:Comandos/forceload Minecraft:ru:Команды консоли/forceload Minecraft:zh:命令/forceload