From 5a79a60e0f592e34433139c16bb02aca65e38d63 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 29 Jan 2015 22:36:16 +0100 Subject: use the default tube textures as fallback for any missing textures during tube registration --- routing_tubes.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'routing_tubes.lua') 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"} -- cgit v1.2.3