[Mod] Universal hand light [illumination]

Post Reply
User avatar
Piezo_
Member
Posts: 219
Joined: Fri Jul 20, 2018 21:36
GitHub: is proprietary I use NotABug
Location: (x,y,z)

[Mod] Universal hand light [illumination]

by Piezo_ » Post

Ladies and gentlemen.
For years, we have suffered in the dark, when the tools of light lay in our very hands.
Today, I offer salvation.
Today...
I offer...
Illumination!
Image
Ladies and gentlemen, I present to you a mod that shatters the veil of darkness that has been draped over our eyes, and illuminates the path ahead!

A mod that allows us to light our way with any item with a corresponding node that emits light, by producing an amount of light fairly close to what that node would emit naturally, so that you can find your way home by its light!

If you desire, download the mod, and may you never find yourself without light!

License

Note: This mod is designed to be straightforward and reliable more than anything else, and does not focus on light around dropped items. If you are looking for a mod that provides light around dropped items, but doesn't try as hard to find a suitable light position, see wielded_light
Last edited by Piezo_ on Wed Sep 05, 2018 02:24, edited 3 times in total.
while (true) { suffer(); }

bell07
Member
Posts: 604
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: [Mod] Universal hand light [illumination]

by bell07 » Post

Please compare also to my wielded_light mod.

Hm, I see my nod needs your canLight detection oO.

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [Mod] Universal hand light [illumination]

by Pyrollo » Post

weilded_light is much better as it offers a simple API making it possible to use illumination for any purpose.

(tested it a couple of days ago and had fun with it)
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [Mod] Universal hand light [illumination]

by Pyrollo » Post

(sorry, posted something off topic, posting it in the proper thread)
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

User avatar
Piezo_
Member
Posts: 219
Joined: Fri Jul 20, 2018 21:36
GitHub: is proprietary I use NotABug
Location: (x,y,z)

Re: [Mod] Universal hand light [illumination]

by Piezo_ » Post

Pyrollo wrote:weilded_light is much better as it offers a simple API making it possible to use illumination for any purpose.
Like setting overrides for ignoring items' light values, or emitting light for other reasons?
Last edited by Piezo_ on Tue Sep 04, 2018 19:13, edited 2 times in total.
while (true) { suffer(); }

User avatar
Piezo_
Member
Posts: 219
Joined: Fri Jul 20, 2018 21:36
GitHub: is proprietary I use NotABug
Location: (x,y,z)

Re: [Mod] Universal hand light [illumination]

by Piezo_ » Post

bell07 wrote:Please compare also to my wielded_light mod.

Hm, I see my nod needs your canLight detection oO.
I didn't really bother with the dropped item aspect, which I see you did manage to pull off pretty well.
while (true) { suffer(); }

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: [Mod] Universal hand light [illumination]

by Pyrollo » Post

Piezo_ wrote:
Pyrollo wrote:weilded_light is much better as it offers a simple API making it possible to use illumination for any purpose.
Like setting overrides for ignoring items' light values, or emitting light for other reasons?
Emitting light for other reasons.

I just used wielded light to create effects like lighten player and mobs using wielded_light.update_light and it worked perfectly (code to be published soon). This function is very convenient for creating any sort of light effects.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

User avatar
acidzebra
Member
Posts: 75
Joined: Sun Sep 10, 2017 09:11

Re: [Mod] Universal hand light [illumination]

by acidzebra » Post

Pyrollo wrote:weilded_light is much better as it offers a simple API making it possible to use illumination for any purpose.
that depends entirely what you're looking for; I don't particularly need an API, I just wanted to be able to walk around with a torch in my hand, so this was exactly what I was looking for :)

Cheers Piezo, nice mod!

(I also quite enjoy your enthusiastic way of "selling" the mods, ha ha)

User avatar
Piezo_
Member
Posts: 219
Joined: Fri Jul 20, 2018 21:36
GitHub: is proprietary I use NotABug
Location: (x,y,z)

Re: [Mod] Universal hand light [illumination]

by Piezo_ » Post

acidzebra wrote: that depends entirely what you're looking for; I don't particularly need an API, I just wanted to be able to walk around with a torch in my hand, so this was exactly what I was looking for :)

Cheers Piezo, nice mod!

(I also quite enjoy your enthusiastic way of "selling" the mods, ha ha)
I'll say, though, wielded_light looks like it does what it aims to quite well, and if someone's looking for something that is more robust and configurable instead of a mod that "Works as expected at all costs" (the latter being illumination in a nutshell), then by all means!

Thanks for the cheers, I'm working on keeping more coming! (A complete overhaul of this mod is in its beta-run on my server right now!)
while (true) { suffer(); }

User avatar
Ghaydn
Member
Posts: 54
Joined: Sat Sep 26, 2020 11:58
In-game: ghaydn
Location: Moscow, Russia

Re: [Mod] Universal hand light [illumination]

by Ghaydn » Post

This is just a little addition to the illumination mod that illuminates all items in the hotbar instead of only wielded one. So, you can place a torch in your hotbar and switch to any tool, you will still keep glowing.
Also added an option to turn this feature off.
Attachments
illumination.zip
(196.17 KiB) Downloaded 59 times
Nobody understands me... — вРН БШ ЯЙЮГЮКХ?

Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 15 guests