• check_circle Functions
  • check_circle Predicates
  • 54,000 views, 76 today
  • 18,574 downloads, 24 today
  • 172
  • 209
  • 43
Fiktel avatar Fiktel
Level 45 : Master Modder
This datapack adds full dynamic light to your world. This means torches will glow in your hands, glow squids will emit actual light and so on.
It uses a light block. No mods required.

-Full features of dynamic light, like in Optifine.
-Fast and fancy profiles.
-Easy to add new (or modify) glowing entities and items.
-Special features for map makers (yes, you can use this datapack in your map (e.g. as a flashlight). Read txt files inside the datapack for more info).
-Multiplayer support.
-Performance and optimization (however in this case a real bottleneck is the minecraft light system itself)

What emits light
-Entities which have equipped a glowing item.
-Glowing items when dropped.
-Entities on fire.
-Some always-glowing entities (like blaze, glow squid etc.).

Standard installation process. Install like any other datapack (Place the zip file inside the datapacks folder of your world then rejoin the world or use /reload).

Keep in mind that datapacks can't update automatically so check for updates from time to time.

After installation the fast profile is enabled by default. To change the profile use:
/function dynlight:profile/off
/function dynlight:profile/fast
/function dynlight:profile/fancy

Version 1.3 works only on Minecraft 1.20 Java Edition or newer.

Older versions
Minecraft 1.17 - 1.19.4: Dynamic light v1.2

Run this function before removing the datapack file to completely uninstall:
/function dynlight:uninstall
CompatibilityMinecraft 1.17
toMinecraft 1.20

3 Update Logs

Version 1.3 : by Fiktel 06/12/2023 1:55:32 pmJun 12th

- updated to minecraft 1.20
- new settings in dynlight:config storage:
fire (byte; default: 1b) - Easy switch if entities on fire should use dynamic light
itemEntity (byte; default: 1b) - Whether item entity (dropped items) should be tested and use dynamic light
mobEquipment (byte; default: 2b) - Whether equipped items should be tested and use dynamic light. Supported: 0b - off, 1b - players only, 2b - all mobs.
- the datapack now tests only hand items and head slot for the presence of glowing items instead of full equipment
- new dynlight:tags/entity_types/ignore can specify witch entity types are always completely ignored (by default contains some technical entities like marker, area effect cloud, display etc.)
- added dynamic light for minecart with furnace when fueled
- slightly improved performance
- fixed bug: dynamic light sources trigger sculk sensors

Create an account or sign in to comment.

09/23/2023 11:43 am
Level 1 : New Miner
FoxLGV avatar
This is probably a stretch, but I'm having trouble pairing this with a 'darker nights' plugin (https://www.spigotmc.org/resources/darkernights.87814/) since the two concepts pair so well together. However, since the old dynamic lights plugin stopped updating and using this datapack instead (which is awesome to see thank you so much) the two seem to be fighting each other? I've asked the darker nights dev to take a look and he's not exactly sure why they're clashing, I was wondering if you had any idea if there was a potential fix?

If not no worries, I know compatibility is hard with this sort of thing.

All the same, awesome datapack. ^-^
09/05/2023 6:17 am
Level 5 : Apprentice System
Michael_Aft0n avatar
is it for java?
06/29/2023 9:23 am
Level 6 : Apprentice Collective
JsabasakaPA avatar
Optifine players: This is worthless. (I'm not kidding, but I download just because I'm fabric user)
But still this is way cooler than normal dynamic lights optifine offers me.
I like this datapack <3
07/02/2023 11:38 am
Level 1 : New Miner
lookpvp avatar
me too.(btw im the rock Dwayne john cena the son of bill gates, my husband is walter white yo,he told me everything
06/24/2023 9:19 pm
Level 1 : New Miner
nasty_haze avatar
The function to change profiles is not working for me in-game. It could be because I do not have cheats enabled on the hardcore world. Can the profile be configured directly in the datapack - in the init.mcfunction file or something?
07/01/2023 6:09 am
Level 45 : Master Modder
Fiktel avatar
Yes, to use commands like /function you must have cheats enabled. You can temporally enable them by opening to LAN: In a world menu click "Open to LAN" -> "Allow Cheats: on" -> "Start LAN World". This is probably the easiest way.
06/21/2023 4:14 pm
Level 40 : Master Warrior
HAK0TA538 avatar
Holding a lantern or being in enchanted armor broke rose bushes? Which was kinda inconvenient for what i was using it for lol. Is there a way to fix that?
06/23/2023 12:34 pm
Level 45 : Master Modder
Fiktel avatar
Placing a light block cause block update that can destroy nearby "unstable" blocks (blocks that break when you place another block next to them). It shouldn't break normal rose bushes.
06/12/2023 2:34 pm
Level 2 : Apprentice Miner
Francesco_09 avatar
very cool for people like me thats dosen't know how to install optifine
08/21/2022 2:51 pm
Level 1 : New Collective
BlankPlanet avatar
Hello, awesome datapack! Could you give us please more control, like be able to disable every feature?

I would love to have only the torches in player hand emitting light.
Greetings 😊
Planet Minecraft


© 2010 - 2023