Skip to content

Commit

Permalink
Fix mesecon cooking recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
TurkeyMcMac authored and sfan5 committed May 11, 2022
1 parent 960b7c4 commit 27c3c51
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions mesecons_wires/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -229,23 +229,31 @@ register_wires()
-- ##############
-- ## Crafting ##
-- ##############
minetest.register_craft({
type = "cooking",
output = "mesecons:wire_00000000_off 2",
recipe = "mesecons_gamecompat:mese_crystal_fragment",
cooktime = 3,
})

minetest.register_craft({
type = "cooking",
output = "mesecons:wire_00000000_off 18",
recipe = "mesecons_gamecompat:mese_crystal",
cooktime = 15,
})

minetest.register_craft({
type = "cooking",
output = "mesecons:wire_00000000_off 162",
recipe = "mesecons_gamecompat:mese",
cooktime = 30,
})
-- (Resolve aliases to avoid bug with cooking/fuel recipes.)

if minetest.registered_aliases["mesecons_gamecompat:mese_crystal_fragment"] then
minetest.register_craft({
type = "cooking",
output = "mesecons:wire_00000000_off 2",
recipe = minetest.registered_aliases["mesecons_gamecompat:mese_crystal_fragment"],
cooktime = 3,
})
end

if minetest.registered_aliases["mesecons_gamecompat:mese_crystal"] then
minetest.register_craft({
type = "cooking",
output = "mesecons:wire_00000000_off 18",
recipe = minetest.registered_aliases["mesecons_gamecompat:mese_crystal"],
cooktime = 15,
})
end

if minetest.registered_aliases["mesecons_gamecompat:mese"] then
minetest.register_craft({
type = "cooking",
output = "mesecons:wire_00000000_off 162",
recipe = minetest.registered_aliases["mesecons_gamecompat:mese"],
cooktime = 30,
})
end

0 comments on commit 27c3c51

Please sign in to comment.