mirror of
https://codeberg.org/SumianVoice/sum_airship.git
synced 2025-03-15 12:21:23 +00:00
45 lines
No EOL
1.1 KiB
Lua
45 lines
No EOL
1.1 KiB
Lua
local S = minetest.get_translator(minetest.get_current_modname())
|
|
|
|
|
|
minetest.register_craftitem("sum_airship:canvas_roll", {
|
|
description = S("Canvas Roll"),
|
|
_doc_items_longdesc = S("Used in crafting airships."),
|
|
inventory_image = "sum_airship_canvas.png",
|
|
stack_max = 64,
|
|
groups = { craftitem = 1 },
|
|
})
|
|
minetest.register_craftitem("sum_airship:hull", {
|
|
description = S("Airship Hull"),
|
|
_doc_items_longdesc = S("Used in crafting airships."),
|
|
inventory_image = "sum_airship_hull.png",
|
|
stack_max = 1,
|
|
groups = { craftitem = 1 },
|
|
})
|
|
if true then
|
|
local w = "group:wool"
|
|
if not minetest.get_modpath("farming") then w = "default:paper" end
|
|
local b = "default:boat"
|
|
local m = "default:steel_ingot"
|
|
if minetest.get_modpath("mcl_boats")
|
|
and minetest.get_modpath("mcl_wool")
|
|
and minetest.get_modpath("mcl_core") then
|
|
w = "group:wool"
|
|
b = "mcl_boats:boat"
|
|
m = "mcl_core:iron_ingot"
|
|
end
|
|
minetest.register_craft({
|
|
output = "sum_airship:canvas_roll",
|
|
recipe = {
|
|
{w, w, w},
|
|
{w, w, w},
|
|
{w, w, w},
|
|
},
|
|
})
|
|
minetest.register_craft({
|
|
output = "sum_airship:hull",
|
|
recipe = {
|
|
{b, b, b},
|
|
{m, m, m},
|
|
},
|
|
})
|
|
end |