diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2012-12-28 16:51:11 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2012-12-28 16:51:11 -0500 |
commit | 5921f6d46caa18310435046a22d5aa0f529998f0 (patch) | |
tree | baa1fb5601e2a0644dcb2b54b20dedd90bf3d978 | |
parent | ab1966f763ed6cda66094d3f7884b33dde3834dc (diff) | |
download | mesecons-5921f6d46caa18310435046a22d5aa0f529998f0.tar mesecons-5921f6d46caa18310435046a22d5aa0f529998f0.tar.gz mesecons-5921f6d46caa18310435046a22d5aa0f529998f0.tar.bz2 mesecons-5921f6d46caa18310435046a22d5aa0f529998f0.tar.xz mesecons-5921f6d46caa18310435046a22d5aa0f529998f0.zip |
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.
-rw-r--r-- | mesecons/wires.lua | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/mesecons/wires.lua b/mesecons/wires.lua index e2eae5a..a513645 100644 --- a/mesecons/wires.lua +++ b/mesecons/wires.lua @@ -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({ + 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( {nodenames = {"mesecons:mesecon_off", "mesecons:mesecon_on"}, |