summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle <kyle.kylina@gmail.com>2012-09-01 23:27:23 -0700
committerKyle <kyle.kylina@gmail.com>2012-09-01 23:27:23 -0700
commitb0142a7429f4b6e0745290982b3781b5b883530c (patch)
treec675dd19cfd14de101e135b2f879ac06003acb0c
parent845c27512171e3f4aa05ea9bc931bd8920696c2f (diff)
downloadmesecons-b0142a7429f4b6e0745290982b3781b5b883530c.tar
mesecons-b0142a7429f4b6e0745290982b3781b5b883530c.tar.gz
mesecons-b0142a7429f4b6e0745290982b3781b5b883530c.tar.bz2
mesecons-b0142a7429f4b6e0745290982b3781b5b883530c.tar.xz
mesecons-b0142a7429f4b6e0745290982b3781b5b883530c.zip
flat inventory image for easy gate identification
-rw-r--r--mesecons_gates/init.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua
index af7d87a..ac1e4c9 100644
--- a/mesecons_gates/init.lua
+++ b/mesecons_gates/init.lua
@@ -37,15 +37,16 @@ for g in ipairs(gates) do gate = gates[g]
fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
}
+ tiles = "jeija_microcontroller_bottom.png^"..
+ "jeija_gate_"..onoff..".png^"..
+ "jeija_gate_"..gate..".png"
+
minetest.register_node(nodename, {
description = description,
paramtype = "light",
drawtype = "nodebox",
- tiles = {
- "jeija_microcontroller_bottom.png^"..
- "jeija_gate_"..onoff..".png^"..
- "jeija_gate_"..gate..".png",
- },
+ tiles = {tiles},
+ inventory_image = tiles,
selection_box = node_box,
node_box = node_box,
walkable = true,