opt-depend on default [squash] (#9)

* more detailed dep checks for recipes

* remove (opt-) depends on default

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
This commit is contained in:
Buckaroo Banzai 2021-11-02 19:45:07 +01:00 committed by GitHub
parent 811847b0e7
commit b5205e4e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 16 deletions

@ -1 +0,0 @@
default

@ -76,6 +76,8 @@ minetest.register_node("jumping:cushion", {
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
})
-- register recipes if the corresponding mods are present
if minetest.get_modpath("default") then
minetest.register_craft({
output = "jumping:trampoline1",
recipe = {
@ -83,7 +85,9 @@ minetest.register_craft({
{"default:steel_ingot", "", "default:steel_ingot"}
}
})
end
if minetest.get_modpath("farming") and minetest.get_modpath("wool") then
minetest.register_craft({
output = "jumping:cushion",
recipe = {
@ -92,3 +96,4 @@ minetest.register_craft({
{"farming:cotton", "farming:cotton", "farming:cotton"}
}
})
end