diff options
author | Anthony <azhang9@gmail.com> | 2013-03-18 23:00:00 -0300 |
---|---|---|
committer | Anthony <azhang9@gmail.com> | 2013-03-18 23:00:00 -0300 |
commit | 65c4ffde7b6078531a20cc3f03931549323233bd (patch) | |
tree | 1435d5c9f48a87a5d242c8492d9b3b6cbec3eeb4 | |
parent | 1eaa8b0dbdb0230f1457834b24775d185308cb4b (diff) | |
download | pipeworks-65c4ffde7b6078531a20cc3f03931549323233bd.tar pipeworks-65c4ffde7b6078531a20cc3f03931549323233bd.tar.gz pipeworks-65c4ffde7b6078531a20cc3f03931549323233bd.tar.bz2 pipeworks-65c4ffde7b6078531a20cc3f03931549323233bd.tar.xz pipeworks-65c4ffde7b6078531a20cc3f03931549323233bd.zip |
Add inventory images for pipes.
-rw-r--r-- | init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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", |