mirror of
https://codeberg.org/SumianVoice/sum_airship.git
synced 2025-04-30 06:01:43 -04:00
RePixture crafting
This commit is contained in:
parent
55241acaba
commit
40033e6879
1 changed files with 55 additions and 24 deletions
79
crafts.lua
79
crafts.lua
|
@ -17,20 +17,52 @@ minetest.register_craftitem("sum_airship:hull", {
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
local w = "group:wool"
|
local w = "group:wool"
|
||||||
if not minetest.get_modpath("farming") then w = "default:paper" end
|
if not minetest.get_modpath("farming") then w = "default:paper" end
|
||||||
local b = "boats:boat"
|
local b = "boats:boat"
|
||||||
local m = "default:steel_ingot"
|
local m = "default:steel_ingot"
|
||||||
local s = "farming:string"
|
local s = "farming:string"
|
||||||
if minetest.get_modpath("mcl_boats")
|
if minetest.get_modpath("mcl_boats")
|
||||||
and minetest.get_modpath("mcl_wool")
|
and minetest.get_modpath("mcl_wool")
|
||||||
and minetest.get_modpath("mcl_core")
|
and minetest.get_modpath("mcl_core")
|
||||||
and minetest.get_modpath("mcl_mobitems") then
|
and minetest.get_modpath("mcl_mobitems") then
|
||||||
w = "group:wool"
|
w = "group:wool"
|
||||||
b = "group:boat"
|
b = "group:boat"
|
||||||
m = "mcl_core:iron_ingot"
|
m = "mcl_core:iron_ingot"
|
||||||
s = "mcl_mobitems:string"
|
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({
|
minetest.register_craft({
|
||||||
output = "sum_airship:canvas_roll",
|
output = "sum_airship:canvas_roll",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -46,13 +78,12 @@ minetest.register_craftitem("sum_airship:hull", {
|
||||||
{m, m, m},
|
{m, m, m},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "sum_airship:boat",
|
||||||
minetest.register_craft({
|
recipe = {
|
||||||
output = "sum_airship:boat",
|
{"sum_airship:canvas_roll","sum_airship:canvas_roll","sum_airship:canvas_roll",},
|
||||||
recipe = {
|
{s, m, s,},
|
||||||
{"sum_airship:canvas_roll","sum_airship:canvas_roll","sum_airship:canvas_roll",},
|
{s, "sum_airship:hull", s,},
|
||||||
{s, m, s,},
|
},
|
||||||
{s, "sum_airship:hull", s,},
|
})
|
||||||
},
|
end
|
||||||
})
|
|
Loading…
Add table
Reference in a new issue