mirror of
https://codeberg.org/SumianVoice/sum_airship.git
synced 2025-04-29 21:51:43 -04:00
RePixture crafting
This commit is contained in:
parent
55241acaba
commit
40033e6879
1 changed files with 55 additions and 24 deletions
59
crafts.lua
59
crafts.lua
|
@ -17,20 +17,52 @@ minetest.register_craftitem("sum_airship:hull", {
|
|||
})
|
||||
|
||||
|
||||
local w = "group:wool"
|
||||
if not minetest.get_modpath("farming") then w = "default:paper" end
|
||||
local b = "boats:boat"
|
||||
local m = "default:steel_ingot"
|
||||
local s = "farming:string"
|
||||
if minetest.get_modpath("mcl_boats")
|
||||
and minetest.get_modpath("mcl_wool")
|
||||
and minetest.get_modpath("mcl_core")
|
||||
and minetest.get_modpath("mcl_mobitems") then
|
||||
local w = "group:wool"
|
||||
if not minetest.get_modpath("farming") then w = "default:paper" end
|
||||
local b = "boats:boat"
|
||||
local m = "default:steel_ingot"
|
||||
local s = "farming:string"
|
||||
if minetest.get_modpath("mcl_boats")
|
||||
and minetest.get_modpath("mcl_wool")
|
||||
and minetest.get_modpath("mcl_core")
|
||||
and minetest.get_modpath("mcl_mobitems") then
|
||||
w = "group:wool"
|
||||
b = "group:boat"
|
||||
m = "mcl_core:iron_ingot"
|
||||
s = "mcl_mobitems:string"
|
||||
end
|
||||
end
|
||||
local rp_fuzzy = minetest.get_modpath("rp_farming") or minetest.get_modpath("rp_mobs_mobs")
|
||||
if rp_fuzzy and minetest.get_modpath("rp_default") then
|
||||
w = "group:fuzzy" -- cotton bale or wool bundle
|
||||
b = "group:boat"
|
||||
m = "rp_default:ingot_steel"
|
||||
s = "rp_default:fiber"
|
||||
end
|
||||
|
||||
if minetest.get_modpath("rp_crafting") then
|
||||
crafting.register_craft({
|
||||
output = "sum_airship:canvas_roll",
|
||||
items = {
|
||||
w.." 9"
|
||||
}
|
||||
})
|
||||
crafting.register_craft({
|
||||
output = "sum_airship:hull",
|
||||
items = {
|
||||
b.." 3",
|
||||
m.." 3"
|
||||
}
|
||||
})
|
||||
crafting.register_craft({
|
||||
output = "sum_airship:boat",
|
||||
items = {
|
||||
"sum_airship:canvas_roll 3",
|
||||
s.." 8",
|
||||
m,
|
||||
"sum_airship:hull",
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = "sum_airship:canvas_roll",
|
||||
recipe = {
|
||||
|
@ -46,13 +78,12 @@ minetest.register_craftitem("sum_airship:hull", {
|
|||
{m, m, m},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
output = "sum_airship:boat",
|
||||
recipe = {
|
||||
{"sum_airship:canvas_roll","sum_airship:canvas_roll","sum_airship:canvas_roll",},
|
||||
{s, m, s,},
|
||||
{s, "sum_airship:hull", s,},
|
||||
},
|
||||
})
|
||||
})
|
||||
end
|
Loading…
Add table
Reference in a new issue