mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-25 02:10:30 +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
7e92fe0a46
@ -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" },
|
||||
|
Loading…
Reference in New Issue
Block a user