Skip to content

Commit

Permalink
opt-depend on default [squash] (#9)
Browse files Browse the repository at this point in the history
* more detailed dep checks for recipes

* remove (opt-) depends on default

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
  • Loading branch information
BuckarooBanzay and BuckarooBanzay committed Nov 2, 2021
1 parent 811847b commit b5205e4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
1 change: 0 additions & 1 deletion depends.txt

This file was deleted.

35 changes: 20 additions & 15 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,24 @@ 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

0 comments on commit b5205e4

Please sign in to comment.