Skip to content

Instantly share code, notes, and snippets.

@intsuc
Last active August 22, 2019 15:13
Show Gist options
  • Save intsuc/2ad0f55de4d02062965a79f12908dc06 to your computer and use it in GitHub Desktop.
Save intsuc/2ad0f55de4d02062965a79f12908dc06 to your computer and use it in GitHub Desktop.
getblock loader
scoreboard objectives add loader dummy
execute store result score #forced loader run forceload add ~ ~
execute if score #forced loader matches 1 run forceload remove ~ ~
execute positioned ~ 0 ~ run function load_chunk
execute positioned ~48 0 ~496 run function load_chunk
execute if blocks ~ 0 ~ ~48 0 ~496 ~ 0 ~ masked
execute positioned ~ 0 ~ run function load_chunk_column
execute positioned ~64 0 ~ run function load_chunk_column
execute positioned ~128 0 ~ run function load_chunk_column
execute positioned ~192 0 ~ run function load_chunk_column
execute positioned ~256 0 ~ run function load_chunk_column
execute positioned ~320 0 ~ run function load_chunk_column
execute positioned ~384 0 ~ run function load_chunk_column
execute positioned ~448 0 ~ run function load_chunk_column
function on_chunks_loaded
# Cached chunks: [[~31, ~31], [~30, ~31], [~29, ~31], [~28, ~31]]
# setblock ~496 0 ~496 minecraft:stone
# setblock ~480 0 ~496 minecraft:stone
# setblock ~464 0 ~496 minecraft:stone
# setblock ~448 0 ~496 minecraft:stone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment