summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-01-18 20:22:29 +0100
committerNovatux <nathanael.courant@laposte.net>2015-01-18 20:34:15 +0100
commit7e92fe0a46bdc97c39129918ddc226d03862f68d (patch)
tree59d72180720bf455cf0ef7f9d5cf8b963d462ee9
parent9e1c5740d3fa79ea8a8dffc658c2db6d798a4a85 (diff)
use an alternative and cleaner way to overwrite the pipeworks tube-recipes and default bronze
-rw-r--r--technic/crafts.lua20
1 files changed, 3 insertions, 17 deletions
diff --git a/technic/crafts.lua b/technic/crafts.lua
index 29ff0d0..a8a0512 100644
--- a/technic/crafts.lua
+++ b/technic/crafts.lua
@@ -159,30 +159,16 @@ minetest.register_craft({
})
-- 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
minetest.register_craft({
type = "shapeless",
- output = "technic:nothing",
+ output = "default:bronze_ingot 0",
recipe = {"default:copper_ingot", "default:steel_ingot"}
})
-- Accelerator tube
minetest.register_craft({
- output = "technic:nothing",
+ output = "pipeworks:accelerator_tube_1 0",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "default:mese_crystal_fragment", "default:steel_ingot", "default:mese_crystal_fragment" },
@@ -192,7 +178,7 @@ minetest.register_craft({
-- Teleport tube
minetest.register_craft({
- output = "technic:nothing",
+ output = "pipeworks:teleport_tube_1 0",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "default:desert_stone", "default:mese_block", "default:desert_stone" },