summaryrefslogtreecommitdiff
path: root/routing_tubes.lua
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-01-29 22:36:16 +0100
committerTim <t4im@users.noreply.github.com>2015-01-29 22:38:01 +0100
commit5a79a60e0f592e34433139c16bb02aca65e38d63 (patch)
treee6edad62ac93647dc6416f8b620a0a317a66511e /routing_tubes.lua
parenta98af7bf159a06bb1fd26902ef4c91105aabe2a0 (diff)
downloadpipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.tar
pipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.tar.gz
pipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.tar.bz2
pipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.tar.xz
pipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.zip
use the default tube textures as fallback for any missing textures during tube registration
Diffstat (limited to 'routing_tubes.lua')
-rw-r--r--routing_tubes.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/routing_tubes.lua b/routing_tubes.lua
index acd93af..3533bad 100644
--- a/routing_tubes.lua
+++ b/routing_tubes.lua
@@ -1,3 +1,14 @@
+-- the default tube and default textures
+pipeworks.register_tube("pipeworks:tube", "Pneumatic tube segment")
+minetest.register_craft( {
+ output = "pipeworks:tube_1 6",
+ recipe = {
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
+ { "", "", "" },
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
+ },
+})
+
if pipeworks.enable_accelerator_tube then
local 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"}