Data Packs Cosmetic

Dynamic light

  • 81.8k views • 6 today
  • save_alt 26.8k downloads • 1 today
Compatibility
Minecraft 1.17
to version
Minecraft 1.20
Changes include
  • Functions
  • Predicates
  • 195
  • 243
  • 43
Fiktel
Lvl 49 • Master Modder
28
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.

Features
-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.).

Installation
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.

Profile
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

Compatibility
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

Uninstalling
Run this function before removing the datapack file to completely uninstall:
/function dynlight:uninstall

3 Update Logs

Version 1.3 : by Fiktel 06/12/2023 1:55:32 pmJune 12, 2023 @ 5:55 pm UTC

- 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
LOAD MORE LOGS

More like this

  Have something to say?

FoxLGV
• 09/23/2023 11:43 am
• Level 1 : New Miner
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. ^-^
1
Rand0_dude
• 09/05/2023 6:17 am
• Level 19 : Journeyman Human Server owner
is it for java?
1
JsabasakaPA
• 06/29/2023 9:23 am
He/Him • Level 9 : Apprentice Dolphin
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
2
lookpvp
• 07/02/2023 11:38 am
• Level 1 : New Miner
me too.(btw im the rock Dwayne john cena the son of bill gates, my husband is walter white yo,he told me everything
1
nasty_haze
• 06/24/2023 9:19 pm
• Level 1 : New Miner
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?
1
Fiktel
• 07/01/2023 6:09 am
• Level 49 : Master Modder
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.
1
HAK0TA538
• 06/21/2023 4:14 pm
• Level 50 : Grandmaster Guard
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?
1
Fiktel
• 06/23/2023 12:34 pm
• Level 49 : Master Modder
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.
1
Francesco_09
• 06/12/2023 2:34 pm
• Level 2 : Apprentice Miner
very cool for people like me thats dosen't know how to install optifine
1
BlankPlanet
• 08/21/2022 2:51 pm
• Level 1 : New Collective
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 😊
1

Welcome