123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- --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 =
- {
- {"default:paper", "default:paper", "default:paper"},
- {"default:paper", "bucket:bucket_lava", "default:paper"},
- {"", "group:wood", "" },
- },
- })
- 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)
|