added intake grate and storage tanks in two versions (with fittings on +/- X
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Mon, 20 Aug 2012 05:49:01 +0000 (01:49 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Mon, 20 Aug 2012 05:49:01 +0000 (01:49 -0400)
and +/- Z respectively)

devices.lua
textures/pipeworks_intake_sides.png [new file with mode: 0644]
textures/pipeworks_intake_top.png [new file with mode: 0644]
textures/pipeworks_storage_tank_fittings.png [new file with mode: 0644]
textures/pipeworks_storage_tank_sides.png [new file with mode: 0644]

index cd78e0ea5d9944b707d986ff2759cba7ef438d0d..1fe8a84d718935bb49ee05968b58b4bbce22f351 100644 (file)
@@ -250,4 +250,69 @@ for a in ipairs(axes) do
        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!")
diff --git a/textures/pipeworks_intake_sides.png b/textures/pipeworks_intake_sides.png
new file mode 100644 (file)
index 0000000..5237f0e
Binary files /dev/null and b/textures/pipeworks_intake_sides.png differ
diff --git a/textures/pipeworks_intake_top.png b/textures/pipeworks_intake_top.png
new file mode 100644 (file)
index 0000000..8e92356
Binary files /dev/null and b/textures/pipeworks_intake_top.png differ
diff --git a/textures/pipeworks_storage_tank_fittings.png b/textures/pipeworks_storage_tank_fittings.png
new file mode 100644 (file)
index 0000000..bbb02b3
Binary files /dev/null and b/textures/pipeworks_storage_tank_fittings.png differ
diff --git a/textures/pipeworks_storage_tank_sides.png b/textures/pipeworks_storage_tank_sides.png
new file mode 100644 (file)
index 0000000..d4bc7da
Binary files /dev/null and b/textures/pipeworks_storage_tank_sides.png differ