From 83093a4160c38a6d0618bf44d3eca55ad3046b41 Mon Sep 17 00:00:00 2001 From: gpcf Date: Thu, 8 Jun 2017 01:45:41 +0200 Subject: Added recipe that uses hemp rope instead of chains (#2) --- depends.txt | 1 + init.lua | 31 +++++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/depends.txt b/depends.txt index 175eea5..6796bf4 100644 --- a/depends.txt +++ b/depends.txt @@ -2,3 +2,4 @@ default technic? homedecor? chains? +farming? diff --git a/init.lua b/init.lua index f8b4320..a0a9e26 100644 --- a/init.lua +++ b/init.lua @@ -877,6 +877,33 @@ if technic_path and chains_path then {"chains:chain", "default:diamond", "chains:chain"} }, }) -else - -- Recipes without technic & chains required. +elseif technic_path and farming and farming.mod and farming.mod == "redo" then + -- add alternative recipe with hemp rope + minetest.register_craft({ + output = "elevator:elevator", + recipe = { + {"technic:cast_iron_ingot", "farming:hemp_rope", "technic:cast_iron_ingot"}, + {"technic:cast_iron_ingot", "default:mese_crystal", "technic:cast_iron_ingot"}, + {"technic:stainless_steel_ingot", "default:glass", "technic:stainless_steel_ingot"}, + }, + }) + + minetest.register_craft({ + output = "elevator:shaft", + recipe = { + {"technic:cast_iron_ingot", "default:glass"}, + {"default:glass", "farming:hemp_rope"}, + }, + }) + + minetest.register_craft({ + output = "elevator:motor", + recipe = { + {"default:diamond", "technic:control_logic_unit", "default:diamond"}, + {"default:steelblock", "technic:motor", "default:steelblock"}, + {"farming:hemp_rope", "default:diamond", "farming:hemp_rope"} + }, + }) + + -- Recipes without technic & chains required. end -- cgit v1.2.3 From 88417f0d6fbe1483800b7cd20a290d4a8983cc86 Mon Sep 17 00:00:00 2001 From: Beha Date: Wed, 7 Jun 2017 19:47:01 -0400 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d88553f..999e65c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Realtime Elevators for Minetest ## Dependencies -This mod has no dependencies other than default, but has recipes designed for use with technic and homedecor/chains and will detect if those are installed. +This mod has no dependencies other than default, but has recipes designed for use with technic and either homedecor/chains (for chains) or farming redo (for rope) and will detect if those are installed. ## Usage Each shaft begins with a motor, and extends down through shaft and elevator nodes. Each elevator node can be used to travel to any other elevator node below the motor and through an unbroken shaft. Only one player can use each shaft at once. -- cgit v1.2.3