Minecraft Data Packs / Quality of Life

Dynamic Lights [v1.0.4 (1.21)]

    • 17,518 views, 42 today
    • 7,680 downloads, 17 today
    • 12
    • 13
    • 4
    dotkarma78
    Level 37 : Artisan Taco Goblin
    13
    Lights? Lights everywhere!

    Functions
    /function dynamiclights:.config- Opens the config to the data pack.
    /function dynamiclights:.uninstall
    - Removes all contents and pauses the data pack. (can also be accessed through the config)


    What is this you may ask?

    It's something you've seen a million times before, I decided to make one of myself.
    Dynamic Lights is a data pack that allows lights to be emitted by items and entities!

    What does it bring?

    It brings glowing:
    • entities (explosives, mobs, projectiles)
    • items (carried and or dropped)
    • armor trims
    • enchantment glint
    • firelight
    What are its kinks?

    Light blocks are unable to be placed if the player / entity, is fully covered in no-collision blocks.
    It's mostly compatible with water, only for full level water blocks.

    These are issues that are unable to be fixed, giving the limitation of data packs.

    I wanna change something about some items / mobs, how can I do that?

    Good news! This data pack runs heavily off of item / entity_type tags.
    You can unzip the data pack and open these folders: Dynamic Lights -> data -> dynamiclights -> tags

    Inside ./tags/*, you will find two folders: entity_type and item
    Both contain a folder called: light_levels

    ./light_levels/* contains three folders: all, air_only, water_only

    all: Entries inside this folder will be executed both on land and underwater.
    air_only: Entries inside this folder will only be executed on land.
    water_only: Entries inside this folder will be executed only underwater.

    Inside those three folders, are .json files numbered 1-15.
    These specify the light level for their entries inside.

    You can open these and modify the entries (values) to your liking!

    Don't leave duplicates. The data pack will likely not break, but any entries in a lower light level file will be overridden by higher light level files.

    What's to come?

    We'll see what Minecraft throws at us.

    Can / should I use this in my map?

    I don't recommend using this data pack if you have light blocks within your map.
    They will be deleted if a player walks into them while glowing.

    Else wise, if you don't mind the inconsistencies that come with data pack limitations, go ahead!
    CompatibilityMinecraft 1.21
    Tags

    4 Update Logs

    Customizability! [v1.0.4] : by dotkarma78 07/16/2024 8:03:12 amJul 16th, 2024

    • added a config, accessed through /function dynamiclights:.config
    • uninstall function can be accessed through the config now too
    • end crystals (AS ENTITY) will no longer glow as light block surpress explosion block damage
    • fixed dropped items not glowing
    • light blocks will be removed at any distance now
    LOAD MORE LOGS

    Create an account or sign in to comment.

    Bafy78
    07/17/2024 12:54 pm
    Level 27 : Expert uwu
    history
    What about performance? Would it be usable on a server with around 30 players, without using all ressources? Placing multiple blocks each tick for every player seems to me like it would make the server lag, doesn't it?
    1
    MonkeManII
    07/15/2024 10:30 am
    He/Him • Level 31 : Artisan Procrastinator Nerd
    Tried to make a version of this in Bedrock, but ran into an issue when used with an item that teleported the player.

    Am I allowed to use this in a map (with credit ofc), and if I am, will it break with teleportation?

    Thank you!
    1
    dotkarma78
    07/16/2024 8:10 am
    Any/All • Level 37 : Artisan Taco Goblin
    Good news!



    I've removed the distance limit for removing light blocks/markers, and it doesn't cause any performance drops.

    I've tested, and yes, it works with teleporting. The light block will be removed once the player is teleported away, appearing at the new location (on the player).



    Feel free to use it!
    1
    dotkarma78
    07/15/2024 10:55 am
    Any/All • Level 37 : Artisan Taco Goblin
    You are allowed to use it!
    It can break with teleportation as the files are ran in a 80 block radius around all players. (removes lights in a 160 block radius)

    I am currently working on a config however, ahould be out pretty soon. You'll be able to tweak the radius through it.
    1

    Welcome