Page MenuHome1F616EMO Bugtracker

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/elevator_mod/init.lua b/elevator_mod/init.lua
new file mode 100644
index 0000000..e5e07f2
--- /dev/null
+++ b/elevator_mod/init.lua
@@ -0,0 +1,33 @@
+-- twi_mods/elevator_mod/init.lua
+-- Modify elevator
+--[[
+ ISC License
+
+ Copyright (c) 2017 Beha
+
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
+]]
+
+for _, name in ipairs({
+ "elevator:motor",
+ "elevator:elevator_box",
+ "elevator:elevator_on"
+}) do
+ local tiles = table.copy(minetest.registered_nodes[name].tiles or {})
+ for i, texture in ipairs(tiles) do
+ if texture == "default_steel_block.png" then
+ tiles[i] = "technic_wrought_iron_block.png"
+ end
+ end
+ minetest.override_item(name, tiles)
+end
diff --git a/elevator_mod/mod.conf b/elevator_mod/mod.conf
new file mode 100644
index 0000000..9953c3a
--- /dev/null
+++ b/elevator_mod/mod.conf
@@ -0,0 +1,2 @@
+name = elevator_mod
+depends = elevator, technic_worldgen

File Metadata

Mime Type
text/x-diff
Expires
Mon, Mar 2, 11:00 PM (28 m, 7 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ab/a1/f5b043ad536489e291e10ba5c144
Default Alt Text
(1 KB)

Event Timeline