• check_circle Functions
  • 1,301 views, 1 today
  • 24 downloads, 0 today
  • 3
  • 2
  • 2
Z0rillac's Avatar Z0rillac
Level 47 : Master Carrot
32

Githubcall_made
Documentationcall_made

Dynlightslib


Welcome to Dynlightslib. Dynlightslib is a mcfunction library that allows you to easily manage lights in Minecraft.

Contents


Dynlightslib integrete three mecanism for the moment:
  • Lights
  • Temporary lights
  • Dynamic lights

Lights


Lights are created with an identifier. They can be deleted at any time with their identifier.

Temporary lights


Temporary lights have a duration chosen by the user, and disappear at the end of this duration.

Dynamic lights


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.

Why sould I use Dynlightslib ?

Performance.


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)

How I add it to my datapack ?


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.

How to credits


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.
CompatibilityMinecraft 1.17
toMinecraft 1.18
Tags

1 Update Logs

water fix : by Z0rillac 09/08/2021 8:39:51 amSep 8th, 2021

fix a bug that duplicat water when placing a block

Create an account or sign in to comment.

Dumbsparce
09/08/2021 1:47 am
Level 1 : New Crafter
Dumbsparce's Avatar
seems impressive, might play around with this!
1
Z0rillac
09/08/2021 8:33 am
Level 47 : Master Carrot
Z0rillac's Avatar
I would be very happy to see how this library is used. If you really plan to use it I advise you to check often if an update is released, some bug fix, optimization and major addition are scheduled.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome