mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-05-14 14:40:23 +02:00
move remaining crafts to crafts.lua
This commit is contained in:
parent
192f07f8b1
commit
961f73ddec
37
crafts.lua
37
crafts.lua
@ -2,6 +2,8 @@ local materials = {
|
|||||||
dirt = "default:dirt",
|
dirt = "default:dirt",
|
||||||
sand = "default:sand",
|
sand = "default:sand",
|
||||||
desert_stone = "default:desert_stone",
|
desert_stone = "default:desert_stone",
|
||||||
|
desert_sand = "default:desert_sand",
|
||||||
|
chest = "default:chest",
|
||||||
gravel = "default:gravel",
|
gravel = "default:gravel",
|
||||||
copper_ingot = "default:copper_ingot",
|
copper_ingot = "default:copper_ingot",
|
||||||
steel_ingot = "default:steel_ingot",
|
steel_ingot = "default:steel_ingot",
|
||||||
@ -50,6 +52,8 @@ elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then
|
|||||||
dirt = "fl_topsoil:dirt",
|
dirt = "fl_topsoil:dirt",
|
||||||
sand = "fl_stone:sand",
|
sand = "fl_stone:sand",
|
||||||
desert_stone = "fl_stone:desert_stone",
|
desert_stone = "fl_stone:desert_stone",
|
||||||
|
desert_sand = "fl_stone:desert_sand",
|
||||||
|
chest = "fl_storage:wood_chest",
|
||||||
gravel = "fl_topsoil:gravel",
|
gravel = "fl_topsoil:gravel",
|
||||||
steel_ingot = "fl_ores:iron_ingot",
|
steel_ingot = "fl_ores:iron_ingot",
|
||||||
gold_ingot = "fl_ores:gold_ingot",
|
gold_ingot = "fl_ores:gold_ingot",
|
||||||
@ -362,3 +366,36 @@ if pipeworks.enable_mese_sand_tube then
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if pipeworks.enable_deployer then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "pipeworks:deployer_off",
|
||||||
|
recipe = {
|
||||||
|
{ "group:wood", "default:chest", "group:wood" },
|
||||||
|
{ materials.stone, "mesecons:piston", materials.stone },
|
||||||
|
{ materials.stone, "mesecons:mesecon", materials.stone },
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
if pipeworks.enable_dispenser then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "pipeworks:dispenser_off",
|
||||||
|
recipe = {
|
||||||
|
{ materials.desert_sand, materials.chest, materials.desert_sand },
|
||||||
|
{ materials.stone, "mesecons:piston", materials.stone },
|
||||||
|
{ materials.stone, "mesecons:mesecon", materials.stone },
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
if pipeworks.enable_node_breaker then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "pipeworks:nodebreaker_off",
|
||||||
|
recipe = {
|
||||||
|
{ "basic_materials:gear_steel", "basic_materials:gear_steel", "basic_materials:gear_steel" },
|
||||||
|
{ materials.stone, "mesecons:piston", materials.stone },
|
||||||
|
{ "group:wood", "mesecons:mesecon", "group:wood" },
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
24
wielder.lua
24
wielder.lua
@ -374,14 +374,6 @@ if pipeworks.enable_node_breaker then
|
|||||||
}
|
}
|
||||||
register_wielder(data)
|
register_wielder(data)
|
||||||
pipeworks.ui_cat_tube_list[#pipeworks.ui_cat_tube_list+1] = "pipeworks:nodebreaker_off"
|
pipeworks.ui_cat_tube_list[#pipeworks.ui_cat_tube_list+1] = "pipeworks:nodebreaker_off"
|
||||||
minetest.register_craft({
|
|
||||||
output = "pipeworks:nodebreaker_off",
|
|
||||||
recipe = {
|
|
||||||
{ "basic_materials:gear_steel", "basic_materials:gear_steel", "basic_materials:gear_steel" },
|
|
||||||
{ "default:stone", "mesecons:piston", "default:stone" },
|
|
||||||
{ "group:wood", "mesecons:mesecon", "group:wood" },
|
|
||||||
}
|
|
||||||
})
|
|
||||||
-- aliases for when someone had technic installed, but then uninstalled it but not pipeworks
|
-- aliases for when someone had technic installed, but then uninstalled it but not pipeworks
|
||||||
minetest.register_alias("technic:nodebreaker_off", "pipeworks:nodebreaker_off")
|
minetest.register_alias("technic:nodebreaker_off", "pipeworks:nodebreaker_off")
|
||||||
minetest.register_alias("technic:nodebreaker_on", "pipeworks:nodebreaker_on")
|
minetest.register_alias("technic:nodebreaker_on", "pipeworks:nodebreaker_on")
|
||||||
@ -426,14 +418,6 @@ if pipeworks.enable_deployer then
|
|||||||
eject_drops = false,
|
eject_drops = false,
|
||||||
})
|
})
|
||||||
pipeworks.ui_cat_tube_list[#pipeworks.ui_cat_tube_list+1] = "pipeworks:deployer_off"
|
pipeworks.ui_cat_tube_list[#pipeworks.ui_cat_tube_list+1] = "pipeworks:deployer_off"
|
||||||
minetest.register_craft({
|
|
||||||
output = "pipeworks:deployer_off",
|
|
||||||
recipe = {
|
|
||||||
{ "group:wood", "default:chest", "group:wood" },
|
|
||||||
{ "default:stone", "mesecons:piston", "default:stone" },
|
|
||||||
{ "default:stone", "mesecons:mesecon", "default:stone" },
|
|
||||||
}
|
|
||||||
})
|
|
||||||
-- aliases for when someone had technic installed, but then uninstalled it but not pipeworks
|
-- aliases for when someone had technic installed, but then uninstalled it but not pipeworks
|
||||||
minetest.register_alias("technic:deployer_off", "pipeworks:deployer_off")
|
minetest.register_alias("technic:deployer_off", "pipeworks:deployer_off")
|
||||||
minetest.register_alias("technic:deployer_on", "pipeworks:deployer_on")
|
minetest.register_alias("technic:deployer_on", "pipeworks:deployer_on")
|
||||||
@ -462,12 +446,4 @@ if pipeworks.enable_dispenser then
|
|||||||
eject_drops = false,
|
eject_drops = false,
|
||||||
})
|
})
|
||||||
pipeworks.ui_cat_tube_list[#pipeworks.ui_cat_tube_list+1] = "pipeworks:dispenser_off"
|
pipeworks.ui_cat_tube_list[#pipeworks.ui_cat_tube_list+1] = "pipeworks:dispenser_off"
|
||||||
minetest.register_craft({
|
|
||||||
output = "pipeworks:dispenser_off",
|
|
||||||
recipe = {
|
|
||||||
{ "default:desert_sand", "default:chest", "default:desert_sand" },
|
|
||||||
{ "default:stone", "mesecons:piston", "default:stone" },
|
|
||||||
{ "default:stone", "mesecons:mesecon", "default:stone" },
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user