mirror of
https://codeberg.org/Wuzzy/pride_flags.git
synced 2025-04-30 14:11:43 -04:00
Transférer les fichiers vers ''
This commit is contained in:
parent
a0adbb6c06
commit
736857a10b
1 changed files with 15 additions and 7 deletions
22
init.lua
22
init.lua
|
@ -398,7 +398,7 @@ minetest.register_node( "pride_flags:upper_mast", {
|
|||
tiles = { "pride_flags_baremetal.png", "pride_flags_baremetal.png" },
|
||||
wield_image = "pride_flags_pole_top_inv.png",
|
||||
inventory_image = "pride_flags_pole_top_inv.png",
|
||||
groups = { cracky = 2 },
|
||||
groups = { cracky = 2, handy = 1 },
|
||||
sounds = metal_sounds,
|
||||
is_ground_content = false,
|
||||
|
||||
|
@ -578,21 +578,29 @@ minetest.register_lbm({
|
|||
end
|
||||
})
|
||||
|
||||
if minetest.get_modpath("default") then
|
||||
local iron = "default:steel_ingot"
|
||||
local wool = "group:wool"
|
||||
|
||||
if minetest.get_modpath("mcl_core") ~= nil then
|
||||
iron = "mcl_core:iron_ingot"
|
||||
wool = "mcl_wool:white"
|
||||
end
|
||||
|
||||
if minetest.get_modpath("default") or minetest.get_modpath("mcl_core") then
|
||||
minetest.register_craft({
|
||||
output = "pride_flags:lower_mast 6",
|
||||
recipe = {
|
||||
{"default:steel_ingot"},
|
||||
{"default:steel_ingot"},
|
||||
{"default:steel_ingot"},
|
||||
{iron},
|
||||
{iron},
|
||||
{iron},
|
||||
},
|
||||
})
|
||||
end
|
||||
minetest.register_craft({
|
||||
output = "pride_flags:upper_mast",
|
||||
recipe = {
|
||||
{"pride_flags:lower_mast", "group:wool", "group:wool"},
|
||||
{"pride_flags:lower_mast", "group:wool", "group:wool"},
|
||||
{"pride_flags:lower_mast", wool, wool},
|
||||
{"pride_flags:lower_mast", wool, wool},
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue