summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle <kyle.kylina@gmail.com>2012-09-01 13:48:16 -0700
committerKyle <kyle.kylina@gmail.com>2012-09-01 13:48:16 -0700
commitb44f443fb27ebdf0129bade9b4d1fbfbfdaf66e5 (patch)
tree0c0ca43acd1ce26bdb7b72681ac4a8835037da72
parentf93930a4781f113da7b84d4b834f2859d17181ee (diff)
downloadmesecons-b44f443fb27ebdf0129bade9b4d1fbfbfdaf66e5.tar
mesecons-b44f443fb27ebdf0129bade9b4d1fbfbfdaf66e5.tar.gz
mesecons-b44f443fb27ebdf0129bade9b4d1fbfbfdaf66e5.tar.bz2
mesecons-b44f443fb27ebdf0129bade9b4d1fbfbfdaf66e5.tar.xz
mesecons-b44f443fb27ebdf0129bade9b4d1fbfbfdaf66e5.zip
nodeboxes
-rw-r--r--mesecons_gates/init.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua
index b8f4797..fd680e1 100644
--- a/mesecons_gates/init.lua
+++ b/mesecons_gates/init.lua
@@ -29,13 +29,22 @@ for g in ipairs(gates) do gate = gates[g]
nodename = "mesecons_gates:"..gate.."_"..onoff
+ node_box = {
+ type = "fixed",
+ fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
+ }
+
minetest.register_node(nodename, {
description = gate.." Gate",
- drawtype = "normal",
+ paramtype = "light",
+ drawtype = "nodebox",
tiles = {
+ "jeija_microcontroller_bottom.png^"..
"jeija_gate_"..onoff..".png^"..
"jeija_gate_"..gate..".png",
},
+ selection_box = node_box,
+ node_box = node_box,
walkable = true,
on_construct = function(pos)
update_gate(pos)