Remove default bronze recipe.
authorNovatux <nathanael.courant@laposte.net>
Fri, 1 Nov 2013 15:15:48 +0000 (16:15 +0100)
committerNovatux <nathanael.courant@laposte.net>
Fri, 1 Nov 2013 15:16:11 +0000 (16:16 +0100)
technic/crafts.lua

index b024f0f523ce531937667917a00be2256bc87ac1..f416eee1f752b52023aa482da75e2b04d7971f73 100644 (file)
@@ -167,3 +167,24 @@ minetest.register_craft({
        }
 })
 
+minetest.register_craftitem("technic:nothing", {
+       description = "",
+       inventory_image = "blank.png",
+})
+
+minetest.register_craft({
+       type = "shapeless",
+       output = "technic:nothing",
+       recipe = {
+               {"default:copper_ingot", "default:steel_ingot"}
+       }
+})
+
+if minetest.register_craft_predict then
+       minetest.register_craft_predict(function(itemstack, player, old_craft_grid, craft_inv)
+               if itemstack:get_name() == "technic:nothing" then
+                       return ItemStack("")
+               end
+       end)
+end
+