Welcome to Dynlightslib. Dynlightslib is a mcfunction library that allows you to easily manage lights in Minecraft.
Dynlightslib integrete three mecanism for the moment:
- Lights
- Temporary lights
- Dynamic lights
Lights are created with an identifier. They can be deleted at any time with their identifier.
Temporary lights have a duration chosen by the user, and disappear at the end of this duration.
The most interesting. The dynamic lights are switchable and entity specific. You can activate a dynamic light on a player or on an area effect cloud for example, to be manipulated.
Dynlightslib is first of all the only library allowing to manage lights dynamically in Minecraft. Thanks to its storage-based and not entity-based operation, it allows for much better performance, such as being able to manage more than 1000 lights each tick, without any optimization mod and without lag (test performed in a classic world, without spawn gamerule, with Intel Core i5 7200U + processor rendering, Minecraft Vanilla)
Drag the Downloaded file into the <datapack>/data folder
.
In the <datapack>/data/minecraft/tags/functions
folder, add "dynlightslib:core/load"
to load.json
. Add "dynlightslib:core/tick"
in tick.json
preferably after the other files to avoid tick delays. Otherwise you can manually execute these functions in the mcfunction files of your datapack.
It is strongly recommended that the project be credited.
Uses Dynlightslib by Zorillac
https://github.com/Z0rillac/Dynlightslib
This program is licensed under the MIT license.