3 Commits

Author SHA1 Message Date
Michal Cieslakiewicz
a652652310 minertools: add flashlight setting for UMG.
UMG can be a light source when enabled in mod settings. This works
with wielded_light or similar mods, otherwise it does not matter.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-12 08:50:34 +02:00
Michal Cieslakiewicz
e0fa4333ed minertools: code rewritten and reorganized.
Major changes:
* all code now in init.lua which eliminates need for global functions
  and variables
* all item-specific data is now stored within item definition
* item configuration stored in metadata
* double-click mechanics eliminated completely, device settings
  available via right-click menu (formspec)
* code reusability by various devices improved dramatically
* flashlight option removed as light level is global item property
  and cannot be set independently for each device

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-11 16:44:24 +02:00
Michal Cieslakiewicz
e1e7c355aa minertools: double-click time now adjustable in settings.
For those who find default 300ms max period too short or too long.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-08 15:34:41 +02:00