A Minecraft Data Pack library that adds various useful features related to forceloading chunks.
Download: Modrinth
For inquiries, please contact @silicatYT on Discord.
If your DataPack uses forceloaded chunks, it's inherently incompatible with any other DataPack which does too. The same is the case for multiple systems within the same DataPack which use forceloads.
ForceloadLib solves this by not only providing a reference-based approach, but also by namespacing the references. This allows your systems or DataPacks to independently forceload chunks without interfering with one another.
ForceloadLib also offers many useful features aside from that.
Note: While ForceloadLib strives for cross-pack compatibility, DataPacks that don't use it will still be incompatible.
Command
: Run a command at the specified locationCommandTrigger
: Specify when the command runs
Force
: Make the reference unremovable until the chunk is loadedProtected
: Make the reference unremovable unless you target it directly via IDDuration
: Make the reference disappear after an arbitrary number of ticks#ForceloadLib.ChunkLoaded ForceloadLib
score gets set to the reference's IDforceloadlib:event ChunkLoaded
storage gets set with the Dimension
, X
and Z
data of the chunk#forceloadlib:chunk_loaded
function tag gets called with that storage as a macro sourceFollow the instructions in the respective function (Everything except zprivate
):
forceloadlib:util/add/from_storage
forceloadlib:util/add/from_storage_and_position
=> 1 macro call less than from_storage
, but must be executed inside the correct chunkforceloadlib:util/remove/from_storage
forceloadlib:util/remove/from_storage_and_position
=> 1 macro call less than from_storage
, but must be executed inside the correct chunkforceloadlib:util/remove/with_id
forceloadlib:util/remove/with_id_from_position
=> 1 macro call less than with_id
, but must be executed inside the correct chunkforceloadlib:uninstall
forceloadlib:uninstall
and click the red CLICK HERE
message to clear all remaining chunk dataNote: ForceloadLib provides a free-to-use scoreboard objective called ForceloadLib.ChunkID
From CMDred:
As per the MIT License, you are allowed to redistribute, modify and use this project as long as we are credited for the original work.
Copyright © 2024 Smithed
Not an official Minecraft product. Not approved by or associated with Mojang Studios