Compare commits

5 Commits

Author SHA1 Message Date
fb4ba8ff96 Merge remote-tracking branch 'upstream/master' 2021-11-06 09:21:27 +01:00
b5205e4e7d 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>
2021-11-02 19:45:07 +01:00
4deba41966 Merge remote-tracking branch 'upstream/master' 2021-02-13 14:12:03 +01:00
811847b0e7 Update mod.conf
Fix typo
2021-02-12 08:00:56 +01:00
f375986e33 Update mod.conf
Fix #8
2021-02-12 08:00:25 +01:00
3 changed files with 21 additions and 17 deletions

View File

@ -1 +0,0 @@
default

View File

@ -76,21 +76,26 @@ minetest.register_node("jumping:cushion", {
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
})
minetest.register_craft({
output = "jumping:trampoline1",
recipe = {
{"jumping:cushion", "jumping:cushion", "jumping:cushion"},
{"default:steel_ingot", "", "default:steel_ingot"}
}
})
-- register recipes if the corresponding mods are present
if minetest.get_modpath("default") then
minetest.register_craft({
output = "jumping:trampoline1",
recipe = {
{"jumping:cushion", "jumping:cushion", "jumping:cushion"},
{"default:steel_ingot", "", "default:steel_ingot"}
}
})
end
minetest.register_craft({
output = "jumping:cushion",
recipe = {
{"farming:cotton", "group:wool", "farming:cotton"},
{"farming:cotton", "group:wool", "farming:cotton"},
{"farming:cotton", "farming:cotton", "farming:cotton"}
}
})
if minetest.get_modpath("farming") and minetest.get_modpath("wool") then
minetest.register_craft({
output = "jumping:cushion",
recipe = {
{"farming:cotton", "group:wool", "farming:cotton"},
{"farming:cotton", "group:wool", "farming:cotton"},
{"farming:cotton", "farming:cotton", "farming:cotton"}
}
})
end
minetest.log("action", "[jumping] loaded.")

View File

@ -1 +1 @@
jumping
name = jumping