forked from mtcontrib/pipeworks
Add inventory images for old pipes.
This commit is contained in:
parent
65c4ffde7b
commit
1695a18641
|
@ -311,14 +311,17 @@ for node in ipairs(nodenames) do
|
||||||
|
|
||||||
if node ~= 2 then
|
if node ~= 2 then
|
||||||
pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1}
|
pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1}
|
||||||
|
image = "pipeworks_plain.png"
|
||||||
else
|
else
|
||||||
pgroups = {snappy=3, pipe=1}
|
pgroups = {snappy=3, pipe=1}
|
||||||
|
image = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("pipeworks:"..nodenames[node], {
|
minetest.register_node("pipeworks:"..nodenames[node], {
|
||||||
description = "Empty Pipe ("..descriptions[node]..")",
|
description = "Empty Pipe ("..descriptions[node]..")",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tiles = fix_image_names(node, "_empty"),
|
tiles = fix_image_names(node, "_empty"),
|
||||||
|
inventory_image = image,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
|
@ -340,6 +343,7 @@ for node in ipairs(nodenames) do
|
||||||
description = "Loaded Pipe ("..descriptions[node]..")",
|
description = "Loaded Pipe ("..descriptions[node]..")",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tiles = fix_image_names(node, "_loaded"),
|
tiles = fix_image_names(node, "_loaded"),
|
||||||
|
inventory_image = image,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user