From db4eca8b7370a8754d2ce916ac36464fb691091c Mon Sep 17 00:00:00 2001 From: minertestdude <43986027+minertestdude@users.noreply.github.com> Date: Sat, 11 Apr 2020 15:02:05 +0200 Subject: MineClone2 support for Elevator mod and few improvements (#13) * deprecating outdated file * Add files via upload * Mineclone2 compatibility, externalization of few settings, inability to break by hand - integrated full Mineclone2 game compatibility layer - externalized elevator settings (easier upgrades for server owners) - turn off the ability to destroy shafts by hand, as this could lead to accidents * Add mineclone textures These textures are MIT licensed and motor texture is done by me, likewise MIT. License added. * Add license about mineclone2 variant of textures * Update readme with support information about Mineclone2. * This should finally nail the correct groups for mineclone2. Sorry. --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index b462b5b..b2eb03e 100644 --- a/init.lua +++ b/init.lua @@ -5,11 +5,11 @@ local armor_path = minetest.get_modpath("3d_armor") -- contains .motors loaded from mod storage -- runtime variables and api functions elevator = { - SPEED = 10, -- Initial speed of a box. - ACCEL = 0.1, -- Acceleration of a box. + SPEED = minetest.settings:get("elevator_speed") or 10, -- Initial speed of a box. + ACCEL = minetest.settings:get("elevator_accel") or 0.1, -- Acceleration of a box. VISUAL_INCREASE = 1.75, VERSION = 8, -- Elevator interface/database version. - PTIMEOUT = 120, -- Maximum time a box can go without players nearby. + PTIMEOUT = minetest.settings:get("elevator_time") or 120, -- Maximum time a box can go without players nearby. boxes = {}, -- Elevator boxes in action. lastboxes = {}, -- Player near box timeout. -- cgit v1.2.3