Light Tool adds a point-able beam of light like a Torch/Flashlight
Currently untested on high traffic servers (Though it should be fine)
This mod also adds an API to make your own
e.g
Code: Select all
light_tool.add_tool("my_mod:light_tool", 25)--First param: The name of your item, Second param: The range of the light beam
light_tool.light_beam(pos, dir, range)--First param: The start position of the beam, Second Param: The direction the beam is pointed, Third param: The max distance the beam can travel
light_tool.register_glow_node(nodename)--Registers a duplicate of the specified node that glows and behaves identically to the light beam (Used for light beams within water)
Spoiler
Also add light_tool to depends of technic mod
Spoiler
• Make it functional within liquids--done
Optional dependencies: default (for the crafting, and underwater lights)
Browse code: https://github.com/Extex101/light_tool
Download: https://github.com/Extex101/light_tool/ ... master.zip