mirror of
https://github.com/minetest-mods/jumping.git
synced 2024-11-22 15:13:54 +01:00
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:
parent
811847b0e7
commit
b5205e4e7d
@ -1 +0,0 @@
|
|||||||
default
|
|
35
init.lua
35
init.lua
@ -76,19 +76,24 @@ minetest.register_node("jumping:cushion", {
|
|||||||
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
|
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
-- register recipes if the corresponding mods are present
|
||||||
output = "jumping:trampoline1",
|
if minetest.get_modpath("default") then
|
||||||
recipe = {
|
minetest.register_craft({
|
||||||
{"jumping:cushion", "jumping:cushion", "jumping:cushion"},
|
output = "jumping:trampoline1",
|
||||||
{"default:steel_ingot", "", "default:steel_ingot"}
|
recipe = {
|
||||||
}
|
{"jumping:cushion", "jumping:cushion", "jumping:cushion"},
|
||||||
})
|
{"default:steel_ingot", "", "default:steel_ingot"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
if minetest.get_modpath("farming") and minetest.get_modpath("wool") then
|
||||||
output = "jumping:cushion",
|
minetest.register_craft({
|
||||||
recipe = {
|
output = "jumping:cushion",
|
||||||
{"farming:cotton", "group:wool", "farming:cotton"},
|
recipe = {
|
||||||
{"farming:cotton", "group:wool", "farming:cotton"},
|
{"farming:cotton", "group:wool", "farming:cotton"},
|
||||||
{"farming:cotton", "farming:cotton", "farming:cotton"}
|
{"farming:cotton", "group:wool", "farming:cotton"},
|
||||||
}
|
{"farming:cotton", "farming:cotton", "farming:cotton"}
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user