nodeboxes

This commit is contained in:
Kyle 2012-09-01 13:48:16 -07:00
parent f93930a478
commit b44f443fb2

View File

@ -29,13 +29,22 @@ for g in ipairs(gates) do gate = gates[g]
nodename = "mesecons_gates:"..gate.."_"..onoff 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, { minetest.register_node(nodename, {
description = gate.." Gate", description = gate.." Gate",
drawtype = "normal", paramtype = "light",
drawtype = "nodebox",
tiles = { tiles = {
"jeija_microcontroller_bottom.png^"..
"jeija_gate_"..onoff..".png^".. "jeija_gate_"..onoff..".png^"..
"jeija_gate_"..gate..".png", "jeija_gate_"..gate..".png",
}, },
selection_box = node_box,
node_box = node_box,
walkable = true, walkable = true,
on_construct = function(pos) on_construct = function(pos)
update_gate(pos) update_gate(pos)