added add_chunk_ticket
This commit is contained in:
1 parent
74c62e5a13
commit
06ede1fbc0
4 files changed
+38
No files matched your search
@@ -712,3 +712,10 @@ It returns a `map` with a report indicating how many chunks were affected, and h
|
||||
* `layer_count_<status>`: number of chunks for which a `<status>` generation step has been performed
|
||||
* `layer_time_<status>`: cumulative time for all chunks spent on generating `<status>` step
|
||||
|
||||
### add_chunk_ticket(pos, type, radius)
|
||||
|
||||
Adds a chunk ticket at a position, which makes the game to keep the designated area centered around
|
||||
`pos` with radius of `radius` loaded for a predefined amount of ticks, defined by `type`. Allowed types
|
||||
are `portal`: 300 ticks, `teleport`: 5 ticks, and `unknown`: 1 tick. Radius can be from 1 to 32 ticks.
|
||||
|
||||
This function is tentative - will likely change when chunk ticket API is properly fleshed out.
|
||||
@@ -1,4 +1,5 @@
|
||||
air
|
||||
add_chunk_ticket
|
||||
biome
|
||||
blast_resistance
|
||||
block
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
blocks_movement block_sound material map_colour property block_properties block_data poi set_poi
|
||||
place_item set_biome biome loaded_status generation_status inhabited_time spawn_potential chunk_tickets
|
||||
structure_eligibility structures structure_references set_structure reset_chunk reload_chunk
|
||||
add_chunk_ticket
|
||||
|
||||
scoreboard scoreboard_add scoreboard_remove scoreboard_display
|
||||
|
||||
|
||||
Reference in new issue
Block a user