diff options
author | minertestdude <43986027+minertestdude@users.noreply.github.com> | 2020-04-11 15:02:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 09:02:05 -0400 |
commit | db4eca8b7370a8754d2ce916ac36464fb691091c (patch) | |
tree | 299d1304017d53b9672c5f74136136b2f5480ac1 /init.lua | |
parent | d4bc5f02881a6b131718dfbfa81f886839c345bf (diff) | |
download | elevator-db4eca8b7370a8754d2ce916ac36464fb691091c.tar.gz elevator-db4eca8b7370a8754d2ce916ac36464fb691091c.tar.bz2 elevator-db4eca8b7370a8754d2ce916ac36464fb691091c.zip |
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.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |