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:
Vanessa Ezekowitz 2012-12-28 16:51:11 -05:00
parent ab1966f763
commit 5921f6d46c

View File

@ -285,18 +285,39 @@ function mesecon:update_autoconnect(pos, secondcall, replace_old)
end
end
minetest.register_craft({
output = '"mesecons:wire_00000000_off" 16',
recipe = {
{'"default:mese"'},
}
})
if minetest.registered_nodes["default:stone_with_mese"] == nil then
minetest.register_craft({
minetest.register_craft({
output = "mesecons:wire_00000000_off 18",
recipe = {
{"default:mese"},
}
})
else
minetest.register_craft({
type = "cooking",
output = '"mesecons:wire_00000000_off" 16',
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_abm(
{nodenames = {"mesecons:mesecon_off", "mesecons:mesecon_on"},