Description:
Illuminates the area around a player when equipped with a light-emitting item. Also supports equipped armor with 3d_armor.
History:
- forked from v0.6 of Echo's walking_light
- forked from Git commit 766ef0f of petermaloney's walking_light
Requirements:
Code: Select all
- Minetest minimum version: 5.0.0
- Depends: none
- Optional depends:
- default (for torch & megatorch)
- walking_light (simply overrides methods)
- Privileges: server (for using commands)
Main methods:
Code: Select all
wlight.register_item(iname, radius)
- Registers an item to emit light when wielded.
- `iname`: Item technical name.
- `radius`: Distance light will reach (max: 10).
wlight.register_armor(iname, radius, litem)
- Registers an item to emit light when equipped in armor inventory.
- `iname`: Item technical name.
- `radius`: Distance light will reach (max: 10).
- `litem`: Whether or not this item should also be registered with `wlight.register_item` (default: true).
Code: Select all
wlight.enable_megatorch
- Enables wlight:megatorch item.
- default: true
Alternative Mods:
- (by Echo)
- (by petermaloney)