mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-10 20:40:27 +01:00
use an alternative and cleaner way to overwrite the pipeworks tube-recipes and default bronze
This commit is contained in:
parent
9e1c5740d3
commit
3128091760
|
@ -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" },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user