From 1eaa8b0dbdb0230f1457834b24775d185308cb4b Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 18 Mar 2013 22:58:39 -0300 Subject: Add inventory images for devices. --- devices.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devices.lua b/devices.lua index faa1b86..4c8072c 100644 --- a/devices.lua +++ b/devices.lua @@ -329,9 +329,11 @@ for fill = 0, 10 do if fill == 0 then filldesc="empty" sgroups = {snappy=3, pipe=1, tankfill=fill+1} + image = nil else filldesc=fill.."0% full" sgroups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1} + image = "pipeworks_storage_tank_fittings.png" end minetest.register_node("pipeworks:expansion_tank_"..fill, { @@ -344,6 +346,7 @@ for fill = 0, 10 do "pipeworks_storage_tank_back.png", pipeworks_liquid_texture.."^pipeworks_storage_tank_front_"..fill..".png" }, + inventory_image = image, paramtype = "light", paramtype2 = "facedir", groups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1}, @@ -374,6 +377,7 @@ for fill = 0, 10 do "pipeworks_storage_tank_back.png", pipeworks_liquid_texture.."^pipeworks_storage_tank_front_"..fill..".png" }, + inventory_image = image, paramtype = "light", paramtype2 = "facedir", groups = sgroups, -- cgit v1.2.3 From 65c4ffde7b6078531a20cc3f03931549323233bd Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 18 Mar 2013 23:00:00 -0300 Subject: Add inventory images for pipes. --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 731be19..8721027 100644 --- a/init.lua +++ b/init.lua @@ -248,15 +248,18 @@ for zp = 0, 1 do if pname ~= "110000" then pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1} pipedesc = "Pipe segment (empty, "..pname..")... You hacker, you." + image = "pipeworks_plain.png" else pgroups = {snappy=3, pipe=1} pipedesc = "Pipe segment" + image = nil end minetest.register_node("pipeworks:pipe_"..pname.."_empty", { description = pipedesc, drawtype = "nodebox", tiles = pipes_fix_image_names(outimgs, "_empty"), + inventory_image = image, paramtype = "light", selection_box = { type = "fixed", @@ -287,6 +290,7 @@ for zp = 0, 1 do description = "Pipe segment (loaded, "..pname..")... You hacker, you.", drawtype = "nodebox", tiles = pipes_fix_image_names(outimgs, "_loaded"), + inventory_image = image, paramtype = "light", selection_box = { type = "fixed", -- cgit v1.2.3 From 1695a18641be00baef9bfb1ca79d413bc1ae791d Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 18 Mar 2013 23:00:36 -0300 Subject: Add inventory images for old pipes. --- oldpipes.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oldpipes.lua b/oldpipes.lua index 90c8a27..0892436 100644 --- a/oldpipes.lua +++ b/oldpipes.lua @@ -311,14 +311,17 @@ for node in ipairs(nodenames) do if node ~= 2 then pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1} + image = "pipeworks_plain.png" else pgroups = {snappy=3, pipe=1} + image = nil end minetest.register_node("pipeworks:"..nodenames[node], { description = "Empty Pipe ("..descriptions[node]..")", drawtype = "nodebox", tiles = fix_image_names(node, "_empty"), + inventory_image = image, paramtype = "light", paramtype2 = "facedir", selection_box = { @@ -340,6 +343,7 @@ for node in ipairs(nodenames) do description = "Loaded Pipe ("..descriptions[node]..")", drawtype = "nodebox", tiles = fix_image_names(node, "_loaded"), + inventory_image = image, paramtype = "light", paramtype2 = "facedir", selection_box = { -- cgit v1.2.3 From 6889ab0419bdb2bc9bde4fd5b396f1ef84a5f969 Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 18 Mar 2013 23:01:09 -0300 Subject: Add inventory images for tubes. --- tubes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubes.lua b/tubes.lua index 19139a3..78ff9b5 100644 --- a/tubes.lua +++ b/tubes.lua @@ -157,7 +157,7 @@ for zp = 0, 1 do if tname ~= "000000" then tgroups = {snappy=3, tube=1, not_in_creative_inventory=1} tubedesc = desc.." ("..tname..")... You hacker, you." - iimg=nil + iimg=plain_textures[1] wscale = {x=1,y=1,z=1} else tgroups = {snappy=3, tube=1} @@ -464,4 +464,4 @@ minetest.register_abm({nodenames={"group:sand_tube"},interval=1,chance=1, end}) modpath=minetest.get_modpath("pipeworks") -dofile(modpath.."/teleport_tube.lua") \ No newline at end of file +dofile(modpath.."/teleport_tube.lua") -- cgit v1.2.3