flat inventory image for easy gate identification

This commit is contained in:
Kyle 2012-09-01 23:27:23 -07:00
parent 845c275121
commit b0142a7429

View File

@ -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 }, 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, { minetest.register_node(nodename, {
description = description, description = description,
paramtype = "light", paramtype = "light",
drawtype = "nodebox", drawtype = "nodebox",
tiles = { tiles = {tiles},
"jeija_microcontroller_bottom.png^".. inventory_image = tiles,
"jeija_gate_"..onoff..".png^"..
"jeija_gate_"..gate..".png",
},
selection_box = node_box, selection_box = node_box,
node_box = node_box, node_box = node_box,
walkable = true, walkable = true,