aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Leskey <ben@benleskey.com>2024-02-26 17:11:04 -0500
committerGitHub <noreply@github.com>2024-02-26 17:11:04 -0500
commit2f8c5a136da85deea568dc4ec250d48984a27ec6 (patch)
tree995b9cabd22b33ed23ee97b7feabe23ae8e1a4a0
parent71b413bfe95e5c26ffc15a330d22d1f6ec10a34d (diff)
parent466740cc716b36febaa1eae96bd9a8cb0b889d7d (diff)
downloadelevator-2f8c5a136da85deea568dc4ec250d48984a27ec6.tar.gz
elevator-2f8c5a136da85deea568dc4ec250d48984a27ec6.tar.bz2
elevator-2f8c5a136da85deea568dc4ec250d48984a27ec6.zip
Merge pull request #24 from gabriel1379/feature/add_alter_for_technic_farming_basic_materials
Add alternative crafting recipe for technic + basic materials (to eschew farming if also present)
-rw-r--r--crafts.lua31
-rw-r--r--mod.conf2
2 files changed, 30 insertions, 3 deletions
diff --git a/crafts.lua b/crafts.lua
index e78bd48..dcbd062 100644
--- a/crafts.lua
+++ b/crafts.lua
@@ -3,6 +3,7 @@ local technic_path = minetest.get_modpath("technic")
local chains_path = minetest.get_modpath("chains")
local mineclone_path = core.get_modpath("mcl_core") and mcl_core
local aurum_path = core.get_modpath("aurum") and aurum
+local basic_materials_path = core.get_modpath("basic_materials")
if mineclone_path then
minetest.register_craft({
@@ -82,9 +83,35 @@ elseif technic_path and chains_path then
{"chains:chain", "default:diamond", "chains:chain"}
},
})
+elseif technic_path and basic_materials_path then
+ minetest.register_craft({
+ output = "elevator:elevator_off",
+ recipe = {
+ {"technic:cast_iron_ingot", "basic_materials:chain_steel", "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", "basic_materials:chain_steel"},
+ },
+ })
+
+ minetest.register_craft({
+ output = "elevator:motor",
+ recipe = {
+ {"default:diamond", "technic:control_logic_unit", "default:diamond"},
+ {"default:steelblock", "technic:motor", "default:steelblock"},
+ {"basic_materials:chain_steel", "default:diamond", "basic_materials:chain_steel"}
+ },
+ })
elseif technic_path and farming and farming.mod and ( farming.mod == "redo" or farming.mod == "undo" ) then
- -- add alternative recipe with hemp rope
- minetest.register_craft({
+ -- add alternative recipe with hemp rope
+ minetest.register_craft({
output = "elevator:elevator_off",
recipe = {
{"technic:cast_iron_ingot", "farming:hemp_rope", "technic:cast_iron_ingot"},
diff --git a/mod.conf b/mod.conf
index 396e669..553dcc5 100644
--- a/mod.conf
+++ b/mod.conf
@@ -1,4 +1,4 @@
name = elevator
description = An entity-based elevator allowing fast realtime travel in Minetest. Supports Minetest Game, MineClone2, and Aurum
-optional_depends = default, technic, homedecor, chains, farming, mcl_core, mcl_sounds, aurum, screwdriver, doc_items
+optional_depends = default, technic, homedecor, chains, farming, mcl_core, mcl_sounds, aurum, screwdriver, doc_items, basic_materials
min_minetest_version = 5.4