summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-20 01:49:01 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-20 01:49:01 -0400
commit6f805e639637203013925c65fddbee2f7ac8e87b (patch)
tree1da64f29bc88d1b65ca9c956e685641be1225502
parent2ebd098e7348e8050fce6321e4ab22a52e1ca1d3 (diff)
downloadpipeworks-6f805e639637203013925c65fddbee2f7ac8e87b.tar
pipeworks-6f805e639637203013925c65fddbee2f7ac8e87b.tar.gz
pipeworks-6f805e639637203013925c65fddbee2f7ac8e87b.tar.bz2
pipeworks-6f805e639637203013925c65fddbee2f7ac8e87b.tar.xz
pipeworks-6f805e639637203013925c65fddbee2f7ac8e87b.zip
added intake grate and storage tanks in two versions (with fittings on +/- X
and +/- Z respectively)
-rw-r--r--devices.lua65
-rw-r--r--textures/pipeworks_intake_sides.pngbin0 -> 6739 bytes
-rw-r--r--textures/pipeworks_intake_top.pngbin0 -> 7570 bytes
-rw-r--r--textures/pipeworks_storage_tank_fittings.pngbin0 -> 1806 bytes
-rw-r--r--textures/pipeworks_storage_tank_sides.pngbin0 -> 1560 bytes
5 files changed, 65 insertions, 0 deletions
diff --git a/devices.lua b/devices.lua
index cd78e0e..1fe8a84 100644
--- a/devices.lua
+++ b/devices.lua
@@ -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
index 0000000..5237f0e
--- /dev/null
+++ b/textures/pipeworks_intake_sides.png
Binary files differ
diff --git a/textures/pipeworks_intake_top.png b/textures/pipeworks_intake_top.png
new file mode 100644
index 0000000..8e92356
--- /dev/null
+++ b/textures/pipeworks_intake_top.png
Binary files differ
diff --git a/textures/pipeworks_storage_tank_fittings.png b/textures/pipeworks_storage_tank_fittings.png
new file mode 100644
index 0000000..bbb02b3
--- /dev/null
+++ b/textures/pipeworks_storage_tank_fittings.png
Binary files differ
diff --git a/textures/pipeworks_storage_tank_sides.png b/textures/pipeworks_storage_tank_sides.png
new file mode 100644
index 0000000..d4bc7da
--- /dev/null
+++ b/textures/pipeworks_storage_tank_sides.png
Binary files differ