mirror of
https://github.com/minetest-mods/technic.git
synced 2025-06-30 23:30:38 +02:00
allow transformer and chainsaw crafts even if required mesecon modules are not loaded
This commit is contained in:
@ -357,10 +357,13 @@ minetest.register_tool("technic:chainsaw", {
|
||||
end,
|
||||
})
|
||||
|
||||
local mesecons_button = minetest.get_modpath("mesecons_button")
|
||||
local trigger = mesecons_button and "mesecons_button:button_off" or "default:mese_crystal_fragment"
|
||||
|
||||
minetest.register_craft({
|
||||
output = "technic:chainsaw",
|
||||
recipe = {
|
||||
{"technic:stainless_steel_ingot", "mesecons_button:button_off", "technic:battery"},
|
||||
{"technic:stainless_steel_ingot", trigger, "technic:battery"},
|
||||
{"technic:fine_copper_wire", "technic:motor", "technic:battery"},
|
||||
{"", "", "technic:stainless_steel_ingot"},
|
||||
}
|
||||
|
Reference in New Issue
Block a user