minetest.clear_craft

From Minetest Developer Wiki
Jump to: navigation, search
minetest.clear_craft(recipe)
  • Will erase existing craft based either on output item or on input recipe.
  • Specify either output or input only. If you specify both, input will be ignored. For input use the same recipe table syntax as for `minetest.register_craft(recipe)`. For output specify only the item, without a quantity.
  • If no erase candidate could be found, Lua exception will be thrown.
  • Warning! The type field ("shaped","cooking" or any other) will be ignored if the recipe contains output. Erasing is then done independently from the crafting method.
Mbox important.png This article is incomplete.
Please help expand this article to include more useful information.
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox