[Mod] Opposite Torch [untorch] [v1]

Post Reply
Atreela
New member
Posts: 4
Joined: Sat May 13, 2017 15:26

[Mod] Opposite Torch [untorch] [v1]

by Atreela » Post

I made a mod which does the opposite of the torch: it darkens places.
This node can e.g. let you to hide your buildings in darkness; or do something else, be creative! ☺
You can craft the node by putting a black dye above a torch in the craft grid.

Download: untorch_v1.zip
License: CC0
Depends: default, dye, minetest ⩾ 0.4.15-dev

Here's a screenshot:
Image
Attachments
untorch_v1.zip
(1.77 KiB) Downloaded 80 times
Last edited by Atreela on Sat May 13, 2017 18:42, edited 2 times in total.

User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

Re: [Mod] Opposite Torch [untorch] [v1]

by xeranas » Post

Nice mod!
There some error when I tried to hit untorch block

Code: Select all

2017-05-13 19:31:32: ERROR[Main]: ServerError: Lua: Runtime error from mod 'untorch' in callback node_on_dig(): Runtime error from mod 'untorch' in callback node_on_destruct(): /home/user/.minetest/mods/untorch/init.lua:21: attempt to call field 'fix_light' (a nil value)
2017-05-13 19:31:32: ERROR[Main]: stack traceback:
2017-05-13 19:31:32: ERROR[Main]: 	/home/user/.minetest/mods/untorch/init.lua:21: in function </home/user/.minetest/mods/untorch/init.lua:19>
2017-05-13 19:31:32: ERROR[Main]: 	[C]: in function 'remove_node'
2017-05-13 19:31:32: ERROR[Main]: 	/usr/share/minetest/builtin/game/item.lua:493: in function </usr/share/minetest/builtin/game/item.lua:443>
2017-05-13 19:31:32: ERROR[Main]: stack traceback:
2017-05-13 19:31:32: ERROR[Main]: 	[C]: in function 'remove_node'
2017-05-13 19:31:32: ERROR[Main]: 	/usr/share/minetest/builtin/game/item.lua:493: in function </usr/share/minetest/builtin/game/item.lua:443>

User avatar
Andrey01
Member
Posts: 2459
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Mod] Opposite Torch [untorch] [v1]

by Andrey01 » Post

I don`t understand mind of the torch: if it opposites to simple torch on default, it turns out what this torch darkens the darkness and lights in sun light. Right? Or do i misunderstand it?

Atreela
New member
Posts: 4
Joined: Sat May 13, 2017 15:26

Re: [Mod] Opposite Torch [untorch] [v1]

by Atreela » Post

xeranas, sorry, I forgot to mention that this mod depends on the newest version (0.4.15-dev). I guess there lies the rub.

Andrey01, the default torch lights darkness and keeps bright sunlight. The opposite torch keeps dark darkness and darkens sunlight.
l hope l got you right.
And the default torch can not light to full sunlight (15), whereas the opposite torch can darken to full darkness (0).

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Opposite Torch [untorch] [v1]

by azekill_DIABLO » Post

yeah!

User avatar
the_raven_262
Member
Posts: 315
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: the_raven_262 Raven262 Corvus262 corvus
In-game: the_raven_262 Raven262 Nevermore

Re: [Mod] Opposite Torch [untorch] [v1]

by the_raven_262 » Post

I can't believe nobody yet thought of this.
This is one small, but amazing idea :D
[amber] [conjuration] [warzone] | Why is #minetest-mod-dev so empty?

Atreela
New member
Posts: 4
Joined: Sat May 13, 2017 15:26

Re: [Mod] Opposite Torch [untorch] [v1]

by Atreela » Post

Thanks, the possibility of manually adjusting light this way is quite new.
https://github.com/minetest/minetest/co ... e365bf72c8

Post Reply

Who is online

Users browsing this forum: Google [Bot], Minix and 13 guests