Add inventory images for pipes.

This commit is contained in:
Anthony 2013-03-18 23:00:00 -03:00
parent 1eaa8b0dbd
commit 65c4ffde7b

View File

@ -248,15 +248,18 @@ for zp = 0, 1 do
if pname ~= "110000" then if pname ~= "110000" then
pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1} pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1}
pipedesc = "Pipe segment (empty, "..pname..")... You hacker, you." pipedesc = "Pipe segment (empty, "..pname..")... You hacker, you."
image = "pipeworks_plain.png"
else else
pgroups = {snappy=3, pipe=1} pgroups = {snappy=3, pipe=1}
pipedesc = "Pipe segment" pipedesc = "Pipe segment"
image = nil
end end
minetest.register_node("pipeworks:pipe_"..pname.."_empty", { minetest.register_node("pipeworks:pipe_"..pname.."_empty", {
description = pipedesc, description = pipedesc,
drawtype = "nodebox", drawtype = "nodebox",
tiles = pipes_fix_image_names(outimgs, "_empty"), tiles = pipes_fix_image_names(outimgs, "_empty"),
inventory_image = image,
paramtype = "light", paramtype = "light",
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -287,6 +290,7 @@ for zp = 0, 1 do
description = "Pipe segment (loaded, "..pname..")... You hacker, you.", description = "Pipe segment (loaded, "..pname..")... You hacker, you.",
drawtype = "nodebox", drawtype = "nodebox",
tiles = pipes_fix_image_names(outimgs, "_loaded"), tiles = pipes_fix_image_names(outimgs, "_loaded"),
inventory_image = image,
paramtype = "light", paramtype = "light",
selection_box = { selection_box = {
type = "fixed", type = "fixed",