By default the "light_source" value from node definition is used but lower by 2. This way the placing torches is not obsolete because of brighter.
Examle: Torch with placed value 13 does shine with 11 if wielded or dropped.
Spoiler
Does work in "air" nodes only, that means shining does not work on ladders, snow, slabs and other nearly empty or airlike nodes.
For Modders:
In addition further items could get or redefined the light value by:
Code: Select all
wielded_light.register_item_light(itemname, light_level)
As external usable API functions exists to be able to use the shining in other mods, see end of README.md file on github and throwing commit for example.
Dependencies: none
License: GPL-3
Download/Source: https://github.com/minetest-mods/wielded_light