Minecraft:Commands/forceload: Difference between revisions
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
{{ | {{For|the [[Minecraft:Bedrock Edition]] equivalent|Commands/tickingarea}}{{exclusive|java}} | ||
{{Infobox command | {{Infobox command | ||
|name=forceload | |name=forceload | ||
| Line 5: | Line 5: | ||
}} | }} | ||
Force | Force [[Minecraft:chunk]]s to load constantly or not, or lists/queries forceloaded chunks. | ||
== Usage == | == Usage == | ||
{{ | {{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 {{ | 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 {{ | 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, {{ | Similarly, {{code|/forceload query}} uses block coordinates as well. | ||
==Syntax== | ==Syntax== | ||
| Line 30: | Line 30: | ||
==Arguments== | ==Arguments== | ||
{{ | {{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. | ||
: {{ | : {{arg desc|je=column_pos}} | ||
{{ | {{argument|pos|column_pos}} | ||
: Specifies a chunk to query based on block position. | : Specifies a chunk to query based on block position. | ||
: {{ | : {{arg desc|je=column_pos}} | ||
==Result== | ==Result== | ||
| Line 52: | Line 52: | ||
== Output == | == Output == | ||
{{ | {{Output table}} | ||
{{ | {{Output table|edition=je|On fail|0|0|0}} | ||
{{ | {{Output table|cmd=/forceload add ...|On success|1|1|the number of forceloaded chunks that is newly added.}} | ||
{{ | {{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 all|On success|1|1|0}} | ||
{{ | {{Output table|cmd=/forceload query|On success|1|1|The number of forceloaded chunks in the current dimension.}} | ||
{{ | {{Output table|cmd=/forceload query <pos>|On success|1|1|1}} | ||
{{ | {{Output table}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java}} | ||
|{{HistoryLine||1.13.1|dev=18w31a|Added {{ | |{{HistoryLine||1.13.1|dev=18w31a|Added {{cmd|chunk|link=none}}.}} | ||
|{{HistoryLine|||dev=pre1|Renamed {{ | |{{HistoryLine|||dev=pre1|Renamed {{cmd|chunk|link=none}} to {{cmd|link=none|forceload}}.}} | ||
|{{HistoryLine||1.14.4|dev=pre4|{{ | |{{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 {{ | |{{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 {{ | |{{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 == | ||
{{ | {{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
- 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
References
<references/>
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