Noch mehr mods
This commit is contained in:
parent
a063db5d3b
commit
cf017b2ca1
527 changed files with 21113 additions and 181 deletions
45
mods/hot_air_balloons/craft.lua
Normal file
45
mods/hot_air_balloons/craft.lua
Normal file
|
@ -0,0 +1,45 @@
|
|||
--This file adds crafting recipes depending on which dependencies are installed
|
||||
|
||||
if minetest.get_modpath("default") and minetest.get_modpath("bucket") then
|
||||
minetest.register_craft({
|
||||
output = "hot_air_balloons:item",
|
||||
recipe = {
|
||||
{ "animalia:leather", "animalia:leather", "animalia:leather" },
|
||||
{ "animalia:leather", "bucket:bucket_lava", "animalia:leather" },
|
||||
{ "farming:string", "group:wood", "farming:string" },
|
||||
},
|
||||
})
|
||||
return
|
||||
end
|
||||
if
|
||||
minetest.get_modpath("mcl_buckets")
|
||||
and minetest.get_modpath("mcl_mobitems")
|
||||
and minetest.get_modpath("mcl_core")
|
||||
then
|
||||
minetest.register_craft({
|
||||
output = "hot_air_balloons:item",
|
||||
recipe = {
|
||||
{ "mcl_mobitems:leather", "mcl_mobitems:leather", "mcl_mobitems:leather" },
|
||||
{ "mcl_mobitems:leather", "bucket:bucket_lava", "mcl_mobitems:leather" },
|
||||
{ "mcl_mobitems:string", "group:wood", "mcl_mobitems:string" },
|
||||
},
|
||||
})
|
||||
return
|
||||
end
|
||||
--[[
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "aircraft"
|
||||
}
|
||||
]]
|
||||
|
||||
--make balloon work with mcl2 creative mode
|
||||
|
||||
--announce in chat if no crafting recipe was added.
|
||||
minetest.after(2, function()
|
||||
minetest.chat_send_all(
|
||||
"Optional dependencies for hot_air_balloons are missing so no crafting recipe was added.\n"
|
||||
.. "Install either 'default' and 'bucket' or 'mcl_core', 'mcl_mobitems' 'and mcl_buckets' if this bothers you.\n"
|
||||
.. "All other functions of the mod should be unaffected by this."
|
||||
)
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue