Page 1 of 1

Removing Smelting Recipe

PostPosted: Sat Jul 25, 2015 22:03
by TheGlobefish
Hello,
I'm trying to remove the recipe for bread (I want to replace it). For crafting recipes, it looks like this code from Technic could work:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_craft({
   type = "shapeless",
   output = "default:bronze_ingot 0",
   recipe = {"default:copper_ingot", "default:steel_ingot"}
})

However, for a smelting recipe, doing something like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_craft({
   type = "cooking",
   output = "farming:bread 0",
   recipe = "farming:flour"
})

doesn't seem to work. How should I go about removing the bread recipe?

Re: Removing Smelting Recipe

PostPosted: Sun Jul 26, 2015 07:40
by Krock
Welcome to the Minetest forums!

You try to something impossible. Usually there are variables that contain all registered data, but only for abms and items.
See https://github.com/minetest/minetest/bl ... lua#L17-23

Re: Removing Smelting Recipe

PostPosted: Sun Jul 26, 2015 22:30
by TheGlobefish
For those who are interested, I've found a workaround.

I removed the recipe to make flour, added my own item, "Flour", with the same texture and recipe, and didn't add the smelting recipe. This won't work for everything, but it works in my situation.