1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-14 06:20:32 +01:00
server-nalc/mods/_misc/sapling_crafts.lua
sys4 a55163ae88 * Replace minetestforfun_game by latest minetest_game stable (0.4.16) as a submodule.
- Customizations made by MFF are moved to other mods. This would permit next upgrades to be more easier.
  - Cherry trees moved to cherry_tree mod as a submodule maintained by sys4-fr.
  - Custom MFF beds, boats, buckets, liquid sources, fences, tools, meze and other nodes/craft definitions moved to nalc mod.
  - Move nyancat mod to mods folder because nyancats no longer exist in minetest_game.
* Move colouredstonebricks mod as a submodule
* Move farming redo mod as a submodule
* Move h2omes mod as a submodule
* Add missing mobs_dung and mese_dragon_inv textures
* Move moreblocks mod as a submodule
* Move moreores mod as a submodule
* Move pipeworks mod as a submodule
* Move player_physics mod as a submodule
* Fix unified_inventory mod (depends.txt)
* Remove definitively watershed mod that was never used in NALC
2017-11-25 23:12:26 +01:00

88 lines
2.3 KiB
Lua

-- Crafts for saplings
-- From Skyblock by Cornernote
--
-- sapling from leaves and sticks
minetest.register_craft({
output = 'default:sapling',
recipe = {
{'default:leaves', 'default:leaves', 'default:leaves'},
{'default:leaves', 'default:leaves', 'default:leaves'},
{'', 'default:stick', ''},
}
})
-- junglesapling from jungleleaves and sticks
minetest.register_craft({
output = 'default:junglesapling',
recipe = {
{'default:jungleleaves', 'default:jungleleaves', 'default:jungleleaves'},
{'default:jungleleaves', 'default:jungleleaves', 'default:jungleleaves'},
{'', 'default:stick', ''},
}
})
-- pine_sapling from pine_needles and sticks
minetest.register_craft({
output = 'default:pine_sapling',
recipe = {
{'default:pine_needles', 'default:pine_needles', 'default:pine_needles'},
{'default:pine_needles', 'default:pine_needles', 'default:pine_needles'},
{'', 'default:stick', ''},
}
})
-- Aspen tree
minetest.register_craft({
output = "default:aspen_sapling",
recipe = {
{"default:aspen_leaves", "default:aspen_leaves", "default:aspen_leaves"},
{"default:aspen_leaves", "default:aspen_leaves", "default:aspen_leaves"},
{"", "default:stick", ""},
}
})
-- Cherry trees
if minetest.get_modpath("cherry_tree") then
minetest.register_craft(
{
output = "cherry_tree:cherry_sapling",
recipe = {
{"cherry_tree:cherry_blossom_leaves", "cherry_tree:cherry_blossom_leaves", "cherry_tree:cherry_blossom_leaves"},
{"cherry_tree:cherry_blossom_leaves", "cherry_tree:cherry_blossom_leaves", "cherry_tree:cherry_blossom_leaves"},
{"", "default:stick", ""},
}
})
end
-- With nether
if minetest.get_modpath("nether") then
minetest.register_craft({
output = "nether:tree_sapling",
recipe = {
{"nether:leaves", "nether:leaves", "nether:leaves"},
{"nether:leaves", "nether:leaves", "nether:leaves"},
{"", "default:stick", ""},
}
})
end
-- With moretrees
if minetest.get_modpath("moretrees") then
for _, tdef in pairs(moretrees.treelist) do
local treename = tdef[1]
if treename ~= "jungletree" then
local leaves = "moretrees:" .. treename .. "_leaves"
minetest.register_craft({
output = "moretrees:" .. treename .. "_sapling",
recipe = {
{leaves, leaves, leaves},
{leaves, leaves, leaves},
{"", "default:stick", ""},
}
})
end
end
end