forked from mtcontrib/pipeworks
added intake grate and storage tanks in two versions (with fittings on +/- X
and +/- Z respectively)
This commit is contained in:
parent
2ebd098e73
commit
6f805e6396
65
devices.lua
65
devices.lua
|
@ -250,4 +250,69 @@ for a in ipairs(axes) do
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- intake grate
|
||||||
|
|
||||||
|
minetest.register_node("pipeworks:intake", {
|
||||||
|
description = "Intake grate",
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = {
|
||||||
|
"pipeworks_intake_top.png",
|
||||||
|
"pipeworks_intake_sides.png",
|
||||||
|
"pipeworks_intake_sides.png",
|
||||||
|
"pipeworks_intake_sides.png",
|
||||||
|
"pipeworks_intake_sides.png",
|
||||||
|
"pipeworks_intake_sides.png"
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||||
|
},
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
groups = {snappy=3, pipe=1},
|
||||||
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
walkable = true,
|
||||||
|
stack_max = 99
|
||||||
|
})
|
||||||
|
|
||||||
|
-- tank
|
||||||
|
|
||||||
|
minetest.register_node("pipeworks:storage_tank_x", {
|
||||||
|
description = "Fluid Storage Tank",
|
||||||
|
tiles = {
|
||||||
|
"pipeworks_storage_tank_fittings.png",
|
||||||
|
"pipeworks_storage_tank_fittings.png",
|
||||||
|
"pipeworks_storage_tank_fittings.png",
|
||||||
|
"pipeworks_storage_tank_fittings.png",
|
||||||
|
"pipeworks_storage_tank_sides.png",
|
||||||
|
"pipeworks_storage_tank_sides.png"
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
groups = {snappy=3, pipe=1},
|
||||||
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
walkable = true,
|
||||||
|
stack_max = 99
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("pipeworks:storage_tank_z", {
|
||||||
|
description = "Fluid Storage Tank (Z axis)... You hacker, you.",
|
||||||
|
tiles = {
|
||||||
|
"pipeworks_storage_tank_fittings.png",
|
||||||
|
"pipeworks_storage_tank_fittings.png",
|
||||||
|
"pipeworks_storage_tank_sides.png",
|
||||||
|
"pipeworks_storage_tank_sides.png",
|
||||||
|
"pipeworks_storage_tank_fittings.png",
|
||||||
|
"pipeworks_storage_tank_fittings.png"
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
||||||
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
walkable = true,
|
||||||
|
stack_max = 99
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
print("Pipeworks loaded!")
|
print("Pipeworks loaded!")
|
||||||
|
|
BIN
textures/pipeworks_intake_sides.png
Normal file
BIN
textures/pipeworks_intake_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
BIN
textures/pipeworks_intake_top.png
Normal file
BIN
textures/pipeworks_intake_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
BIN
textures/pipeworks_storage_tank_fittings.png
Normal file
BIN
textures/pipeworks_storage_tank_fittings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
textures/pipeworks_storage_tank_sides.png
Normal file
BIN
textures/pipeworks_storage_tank_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user