nodeboxes

This commit is contained in:
Kyle 2012-09-01 13:48:16 -07:00
parent f93930a478
commit b44f443fb2
1 changed files with 10 additions and 1 deletions

View File

@ -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)