forked from minetest-mods/mesecons
made tweaks to the way mese is converted to mesecons. If old mese paradigm is
in use, one default:mese crafts to 18 mesecons wires. If new paradigm is in use, cook one mese crystal fragment to get 2 wires, or cook one mese crystal to get 18, or cook one mese block to get 162. Avoids conflict with new default recipe that crafts 9 crystals from one mese block.
This commit is contained in:
parent
ab1966f763
commit
5921f6d46c
|
@ -285,18 +285,39 @@ function mesecon:update_autoconnect(pos, secondcall, replace_old)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
if minetest.registered_nodes["default:stone_with_mese"] == nil then
|
||||||
output = '"mesecons:wire_00000000_off" 16',
|
|
||||||
recipe = {
|
minetest.register_craft({
|
||||||
{'"default:mese"'},
|
output = "mesecons:wire_00000000_off 18",
|
||||||
}
|
recipe = {
|
||||||
})
|
{"default:mese"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
else
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "mesecons:wire_00000000_off 2",
|
||||||
|
recipe = "default:mese_crystal_fragment",
|
||||||
|
cooktime = 3,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "mesecons:wire_00000000_off 18",
|
||||||
|
recipe = "default:mese_crystal",
|
||||||
|
cooktime = 15,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "mesecons:wire_00000000_off 162",
|
||||||
|
recipe = "default:mese",
|
||||||
|
cooktime = 30,
|
||||||
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = '"mesecons:wire_00000000_off" 16',
|
|
||||||
recipe = "default:mese_crystal",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_abm(
|
minetest.register_abm(
|
||||||
{nodenames = {"mesecons:mesecon_off", "mesecons:mesecon_on"},
|
{nodenames = {"mesecons:mesecon_off", "mesecons:mesecon_on"},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user