summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-01-20 19:06:40 +0100
committerNovatux <nathanael.courant@laposte.net>2013-01-20 19:06:40 +0100
commitc03414dc9d24ff0119408bbe2fc0d3e61401c490 (patch)
tree2a415ef5a0a4883c6f272e49393757c482223a36
parentfe0fd686013bf24103d67a6a8b91ba19f41ca86e (diff)
downloadpipeworks-c03414dc9d24ff0119408bbe2fc0d3e61401c490.tar
pipeworks-c03414dc9d24ff0119408bbe2fc0d3e61401c490.tar.gz
pipeworks-c03414dc9d24ff0119408bbe2fc0d3e61401c490.tar.bz2
pipeworks-c03414dc9d24ff0119408bbe2fc0d3e61401c490.tar.xz
pipeworks-c03414dc9d24ff0119408bbe2fc0d3e61401c490.zip
Added textures for sand and accelerator tubes, added crafting recipe for sand tube.
-rw-r--r--crafts.lua9
-rw-r--r--textures/pipeworks_accelerator_tube_end.pngbin0 -> 2836 bytes
-rw-r--r--textures/pipeworks_accelerator_tube_inv.pngbin0 -> 1295 bytes
-rw-r--r--textures/pipeworks_accelerator_tube_noctr.pngbin0 -> 2182 bytes
-rw-r--r--textures/pipeworks_accelerator_tube_plain.pngbin0 -> 2742 bytes
-rw-r--r--textures/pipeworks_accelerator_tube_short.pngbin0 -> 1378 bytes
-rw-r--r--textures/pipeworks_sand_tube_end.pngbin0 -> 2561 bytes
-rw-r--r--textures/pipeworks_sand_tube_inv.pngbin0 -> 1209 bytes
-rw-r--r--textures/pipeworks_sand_tube_noctr.pngbin0 -> 1969 bytes
-rw-r--r--textures/pipeworks_sand_tube_plain.pngbin0 -> 2433 bytes
-rw-r--r--textures/pipeworks_sand_tube_short.pngbin0 -> 1220 bytes
-rw-r--r--tubes.lua26
12 files changed, 31 insertions, 4 deletions
diff --git a/crafts.lua b/crafts.lua
index 9d33b4f..e5adc4e 100644
--- a/crafts.lua
+++ b/crafts.lua
@@ -137,6 +137,15 @@ if io.open(minetest.get_modpath("pipeworks").."/../technic/init.lua", "r") == ni
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
},
})
+
+ minetest.register_craft( {
+ output = "pipeworks:sand_tube_000000 2",
+ recipe = {
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
+ { "default:sand", "default:sand", "default:sand" },
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
+ },
+ })
minetest.register_craft( {
output = "pipeworks:filter 2",
diff --git a/textures/pipeworks_accelerator_tube_end.png b/textures/pipeworks_accelerator_tube_end.png
new file mode 100644
index 0000000..38e1848
--- /dev/null
+++ b/textures/pipeworks_accelerator_tube_end.png
Binary files differ
diff --git a/textures/pipeworks_accelerator_tube_inv.png b/textures/pipeworks_accelerator_tube_inv.png
new file mode 100644
index 0000000..d9f34a9
--- /dev/null
+++ b/textures/pipeworks_accelerator_tube_inv.png
Binary files differ
diff --git a/textures/pipeworks_accelerator_tube_noctr.png b/textures/pipeworks_accelerator_tube_noctr.png
new file mode 100644
index 0000000..f09c85c
--- /dev/null
+++ b/textures/pipeworks_accelerator_tube_noctr.png
Binary files differ
diff --git a/textures/pipeworks_accelerator_tube_plain.png b/textures/pipeworks_accelerator_tube_plain.png
new file mode 100644
index 0000000..29218ba
--- /dev/null
+++ b/textures/pipeworks_accelerator_tube_plain.png
Binary files differ
diff --git a/textures/pipeworks_accelerator_tube_short.png b/textures/pipeworks_accelerator_tube_short.png
new file mode 100644
index 0000000..4e37b66
--- /dev/null
+++ b/textures/pipeworks_accelerator_tube_short.png
Binary files differ
diff --git a/textures/pipeworks_sand_tube_end.png b/textures/pipeworks_sand_tube_end.png
new file mode 100644
index 0000000..a7816a4
--- /dev/null
+++ b/textures/pipeworks_sand_tube_end.png
Binary files differ
diff --git a/textures/pipeworks_sand_tube_inv.png b/textures/pipeworks_sand_tube_inv.png
new file mode 100644
index 0000000..d3a4b6a
--- /dev/null
+++ b/textures/pipeworks_sand_tube_inv.png
Binary files differ
diff --git a/textures/pipeworks_sand_tube_noctr.png b/textures/pipeworks_sand_tube_noctr.png
new file mode 100644
index 0000000..ddad54a
--- /dev/null
+++ b/textures/pipeworks_sand_tube_noctr.png
Binary files differ
diff --git a/textures/pipeworks_sand_tube_plain.png b/textures/pipeworks_sand_tube_plain.png
new file mode 100644
index 0000000..3d3b03e
--- /dev/null
+++ b/textures/pipeworks_sand_tube_plain.png
Binary files differ
diff --git a/textures/pipeworks_sand_tube_short.png b/textures/pipeworks_sand_tube_short.png
new file mode 100644
index 0000000..5fa36ac
--- /dev/null
+++ b/textures/pipeworks_sand_tube_short.png
Binary files differ
diff --git a/tubes.lua b/tubes.lua
index 72390b9..e0169a1 100644
--- a/tubes.lua
+++ b/tubes.lua
@@ -416,15 +416,33 @@ register_tube("pipeworks:detector_tube_off","Detector tube segment",detector_pla
mesecons={receptor={state="off",
rules=mesecons_rules}}})
-register_tube("pipeworks:accelerator_tube","Accelerator pneumatic tube segment",plain_textures,noctr_textures,end_textures,
- short_texture,inv_texture,
+accelerator_noctr_textures={"pipeworks_accelerator_tube_noctr.png","pipeworks_accelerator_tube_noctr.png","pipeworks_accelerator_tube_noctr.png",
+ "pipeworks_accelerator_tube_noctr.png","pipeworks_accelerator_tube_noctr.png","pipeworks_accelerator_tube_noctr.png"}
+accelerator_plain_textures={"pipeworks_accelerator_tube_plain.png","pipeworks_accelerator_tube_plain.png","pipeworks_accelerator_tube_plain.png",
+ "pipeworks_accelerator_tube_plain.png","pipeworks_accelerator_tube_plain.png","pipeworks_accelerator_tube_plain.png"}
+accelerator_end_textures={"pipeworks_accelerator_tube_end.png","pipeworks_accelerator_tube_end.png","pipeworks_accelerator_tube_end.png",
+ "pipeworks_accelerator_tube_end.png","pipeworks_accelerator_tube_end.png","pipeworks_accelerator_tube_end.png"}
+accelerator_short_texture="pipeworks_accelerator_tube_short.png"
+accelerator_inv_texture="pipeworks_accelerator_tube_inv.png"
+
+register_tube("pipeworks:accelerator_tube","Accelerator pneumatic tube segment",accelerator_plain_textures,
+ accelerator_noctr_textures,accelerator_end_textures,accelerator_short_texture,accelerator_inv_texture,
{tube={can_go=function(pos,node,velocity,stack)
velocity.speed=velocity.speed+1
return notvel(meseadjlist,velocity)
end}})
-register_tube("pipeworks:sand_tube","Sand pneumatic tube segment",plain_textures,noctr_textures,end_textures,
- short_texture,inv_texture,
+sand_noctr_textures={"pipeworks_sand_tube_noctr.png","pipeworks_sand_tube_noctr.png","pipeworks_sand_tube_noctr.png",
+ "pipeworks_sand_tube_noctr.png","pipeworks_sand_tube_noctr.png","pipeworks_sand_tube_noctr.png"}
+sand_plain_textures={"pipeworks_sand_tube_plain.png","pipeworks_sand_tube_plain.png","pipeworks_sand_tube_plain.png",
+ "pipeworks_sand_tube_plain.png","pipeworks_sand_tube_plain.png","pipeworks_sand_tube_plain.png"}
+sand_end_textures={"pipeworks_sand_tube_end.png","pipeworks_sand_tube_end.png","pipeworks_sand_tube_end.png",
+ "pipeworks_sand_tube_end.png","pipeworks_sand_tube_end.png","pipeworks_sand_tube_end.png"}
+sand_short_texture="pipeworks_sand_tube_short.png"
+sand_inv_texture="pipeworks_sand_tube_inv.png"
+
+register_tube("pipeworks:sand_tube","Sand pneumatic tube segment",sand_plain_textures,sand_noctr_textures,sand_end_textures,
+ sand_short_texture,sand_inv_texture,
{groups={sand_tube=1},
tube={can_go=function(pos,node,velocity,stack)
return meseadjlist