Данные могли устареть: источник временно недоступен, показан кэш.

ForceloadLib
A Minecraft Data Pack library that adds various useful features related to forceloading chunks.
- Загрузки
- 535
- Подписчики
- 5
- Обновлён
- 25 марта 2025 г.
- Лицензия
- MIT
Опубликован 16 июня 2024 г.
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.
Ченджлог
1.1.1Релиз26.1.1, 26.1.2, 26.2 · 25 марта 2025 г.
Additions
- Added a free-to-use scoreboard called
ForceloadLib.ChunkID
Bugfixes
- Fixed a bug where loaded chunks would not get forceloaded despite getting a reference
Other
- Minor internal changes
1.1.1Релиз1.21.2, 1.21.3, 1.21.4 · 10 октября 2024 г.
Additions
- Added a free-to-use scoreboard called
ForceloadLib.ChunkID
Bugfixes
- Fixed a bug where loaded chunks would not get forceloaded despite getting a reference
Other
- Minor internal changes
1.1.0Релиз1.21.2, 1.21.3, 1.21.4 · 20 июля 2024 г.
Additions:
- Added a toggle for the reload message
- Added the 'CommandTrigger' parameter which decides when the 'Command' will run
- Added score versioning, which cancels the "uninstalling" process if a different version is installed than you're trying to remove
Changes:
- Improved the explanations inside the "add" functions
Bugfixes:
- Fixed the 'Command' not running if the chunk is already loaded and the reference has a Duration
- Fixed the uninstalling error messages being shown to @a
- Fixed certain things not getting removed properly when uninstalling, leading to issues
- Fixed a temporary storage not getting removed when removing a reference via ID
1.0.0Релиз1.21 · 19 июля 2024 г.
Changes:
- Put 'load' and 'init' in the 'zprivate/' folder to make it clear they're not meant to be run by users
1.0.0Бета1.21 · 19 июля 2024 г.
Fixed bugs:
- Fixed several issues with timer references
- Fixed a bug where removing with ID would not properly remove timer or loading references
Additions:
- Added pack.png
- Added debug features to list the references of a chunk (& namespace)
Backend:
- Renamed an unnecessary unique score
1.0.0Альфа1.21 · 17 июля 2024 г.
Initial release
Note: This version contains some bugs related to "Duration" for references. I'd advise not to use them in this version.
Комментарии
Загружаем…