Skip to content

Instantly share code, notes, and snippets.

@intsuc
Last active August 22, 2019 15:13
Show Gist options
  • Save intsuc/ab585cd38cc95dac96f4d6821b2fd40d to your computer and use it in GitHub Desktop.
Save intsuc/ab585cd38cc95dac96f4d6821b2fd40d to your computer and use it in GitHub Desktop.
5x5 forceload chunk loader (1.14.4)
scoreboard objectives add forceloader dummy
execute store result score target_chunk_forced forceloader run forceload add ~ ~
execute if score target_chunk_forced forceloader matches 1 positioned ~16 ~ ~ run function request_chunk
function on_chunks_loaded
execute if score target_chunk_forced forceloader matches 1 run forceload remove ~ ~
# fill ~-32 ~ ~-32 ~32 ~ ~32 minecraft:stone
execute store result score requested_chunk_not_forced forceloader run forceload remove ~ ~
forceload add ~ ~
execute if score requested_chunk_not_forced forceloader matches 0 run forceload remove ~ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment