Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removes non-cooking recipes for silver/mithril ingots #186

Open
programmerjake opened this issue Dec 16, 2024 · 0 comments
Open

removes non-cooking recipes for silver/mithril ingots #186

programmerjake opened this issue Dec 16, 2024 · 0 comments

Comments

@programmerjake
Copy link
Contributor

programmerjake commented Dec 16, 2024

when trying to removing the recipes for cooking to make silver/mithril ingots, the code instead removes all recipes that produce silver/mithril ingots, including recipes such as crafting a silver block into ingots:

techage/furnace/recipes.lua

Lines 154 to 155 in 8183b05

minetest.clear_craft({output = "moreores:mithril_ingot"})
minetest.clear_craft({output = "moreores:silver_ingot"})

minetest.clear_craft({output = "default:bronze_ingot"})
minetest.clear_craft({output = "default:steel_ingot"})
minetest.clear_craft({output = "fire:flint_and_steel"})
minetest.clear_craft({output = "bucket:bucket_empty"})

I think the fix would be something like changing the clear_craft calls to not specify the output item and instead specify the inputs and type, that way it doesn't delete all the other recipes so you don't have to re-add them:

-- delete cooking iron lumps into steel ingots
minetest.clear_craft({
    type = "cooking",
    recipe = "default:iron_lump",
})
-- delete cooking silver lumps into silver ingots
minetest.clear_craft({
    type = "cooking",
    recipe = "moreores:silver_lump",
})
-- delete crafting buckets from steel ingots
minetest.register_craft({
    recipe = {
        {"default:steel_ingot", "", "default:steel_ingot"},
        {"", "default:steel_ingot", ""},
    }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant