use an alternative and cleaner way to overwrite the pipeworks tube-recipes and default bronze

This commit is contained in:
Tim 2015-01-18 20:22:29 +01:00 committed by Novatux
parent 9e1c5740d3
commit 7e92fe0a46

View File

@ -159,30 +159,16 @@ minetest.register_craft({
}) })
-- Remove some recipes -- Remove some recipes
minetest.register_craftitem("technic:nothing", {
description = "",
inventory_image = "blank.png",
groups = { not_in_creative_inventory = 1 },
})
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
-- Bronze -- Bronze
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "technic:nothing", output = "default:bronze_ingot 0",
recipe = {"default:copper_ingot", "default:steel_ingot"} recipe = {"default:copper_ingot", "default:steel_ingot"}
}) })
-- Accelerator tube -- Accelerator tube
minetest.register_craft({ minetest.register_craft({
output = "technic:nothing", output = "pipeworks:accelerator_tube_1 0",
recipe = { recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "default:mese_crystal_fragment", "default:steel_ingot", "default:mese_crystal_fragment" }, { "default:mese_crystal_fragment", "default:steel_ingot", "default:mese_crystal_fragment" },
@ -192,7 +178,7 @@ minetest.register_craft({
-- Teleport tube -- Teleport tube
minetest.register_craft({ minetest.register_craft({
output = "technic:nothing", output = "pipeworks:teleport_tube_1 0",
recipe = { recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "default:desert_stone", "default:mese_block", "default:desert_stone" }, { "default:desert_stone", "default:mese_block", "default:desert_stone" },