
ForceloadLib
I don't know my version or loader
ForceloadLib
A Minecraft Data Pack library that adds various useful features related to forceloading chunks.
Download: Modrinth
For inquiries, please contact @silicatYT on Discord.
Why you need ForceloadLib
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.
Features
- Reference-based forceloading
- Add and remove forceload references from a chunk
- The chunk will only stop being forceloaded once every single reference has been removed
- Each reference belongs to a namespace for better control & cross-system compatibility
- Various optional parameters for your forceload references:
Command: Run a command at the specified locationCommandTrigger: Specify when the command runs- Instantly (or as soon as the chunk loads)
- Only if the chunk loads
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
- Powerful reference management
- Either remove the last removable reference from a chunk, or target it directly via ID
- Chunk loading management. When a chunk gets loaded:
#ForceloadLib.ChunkLoaded ForceloadLibscore gets set to the reference's IDforceloadlib:event ChunkLoadedstorage gets set with theDimension,XandZdata of the chunk#forceloadlib:chunk_loadedfunction tag gets called with that storage as a macro source
- A function tag that's called whenever a chunk gets loaded
- It also sets a score (Reference ID) & a storage (Dimension & X/Z coords) for
- Compatibility with Vanilla forceloaded chunks
- These chunks will be ignored when trying to add/remove references
How to use
Follow the instructions in the respective function (Everything except zprivate):
- Add forceload references:
forceloadlib:util/add/from_storageforceloadlib:util/add/from_storage_and_position=> 1 macro call less thanfrom_storage, but must be executed inside the correct chunk
- Remove forceload references:
forceloadlib:util/remove/from_storageforceloadlib:util/remove/from_storage_and_position=> 1 macro call less thanfrom_storage, but must be executed inside the correct chunkforceloadlib:util/remove/with_idforceloadlib:util/remove/with_id_from_position=> 1 macro call less thanwith_id, but must be executed inside the correct chunk
- Update ForceloadLib:
- Run
forceloadlib:uninstall - Remove the datapack and replace it with the new version
- Reload
- Run
- Uninstall ForceloadLib:
- Run
forceloadlib:uninstalland click the redCLICK HEREmessage to clear all remaining chunk data - Remove the datapack
- Run
Note: ForceloadLib provides a free-to-use scoreboard objective called ForceloadLib.ChunkID
Credit
From CMDred:
- SilicatYT
License
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.
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21.5, 1.21.6, 1.21.7
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
- Downloads as ForceloadLib.zip
- Download size: 214 KB
- Download link checked 5 Sept 2026 — working
These come from our own check of the pack file, not from the source page.