summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony <azhang9@gmail.com>2013-03-18 22:58:39 -0300
committerAnthony <azhang9@gmail.com>2013-03-18 22:58:39 -0300
commit1eaa8b0dbdb0230f1457834b24775d185308cb4b (patch)
treedb90b350ebc31ccd332ab07c4a3c8c9af32d2569
parent26422fec7a7f84833072f151bb0cf39721447245 (diff)
downloadpipeworks-1eaa8b0dbdb0230f1457834b24775d185308cb4b.tar
pipeworks-1eaa8b0dbdb0230f1457834b24775d185308cb4b.tar.gz
pipeworks-1eaa8b0dbdb0230f1457834b24775d185308cb4b.tar.bz2
pipeworks-1eaa8b0dbdb0230f1457834b24775d185308cb4b.tar.xz
pipeworks-1eaa8b0dbdb0230f1457834b24775d185308cb4b.zip
Add inventory images for devices.
-rw-r--r--devices.lua4
1 files changed, 4 insertions, 0 deletions
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,