Removing Smelting Recipe

TheGlobefish
New member
 
Posts: 2
Joined: Fri Jul 24, 2015 19:36

Removing Smelting Recipe

by TheGlobefish » Sat Jul 25, 2015 22:03

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?
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Removing Smelting Recipe

by Krock » Sun Jul 26, 2015 07:40

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
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

TheGlobefish
New member
 
Posts: 2
Joined: Fri Jul 24, 2015 19:36

Re: Removing Smelting Recipe

by TheGlobefish » Sun Jul 26, 2015 22:30

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.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 6 guests

cron