[abandoned] [Mod] Walking Light [wlight]

Post Reply
User avatar
AntumDeluge
Member
Posts: 213
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

[abandoned] [Mod] Walking Light [wlight]

by AntumDeluge » Post

Note: this mod has been abandoned in favor of wielded_light now that it has support for 3d_armor via 3d_armor_light

Description:

Illuminates the area around a player when equipped with a light-emitting item. Also supports equipped armor with 3d_armor.

Image

History:
Licensing:
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)
Usage:

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).
Settings:

Code: Select all

wlight.enable_megatorch
- Enables wlight:megatorch item.
- default: true
Links:
Alternative Mods:

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 8 guests