Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for mineclone2,mineclonia and mineclone5 #18

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mod.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
name = treecapitator
optional_depends = default, farming_plus, moretrees, ethereal
optional_depends = default, farming_plus, moretrees, ethereal, mcl_core, mcl_mangrove, mcl_cherry_blossom
supported_games = minetest_game, mineclone2, mineclonia, mineclone5
63 changes: 63 additions & 0 deletions trees.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,66 @@
if minetest.get_modpath("mcl_core") then
treecapitator.register_tree({
trees = {"mcl_core:acaciatree"},
leaves = {"mcl_core:acacialeaves"},
range = 3,
})

treecapitator.register_tree{
trees = {"mcl_core:tree"},
leaves = {"mcl_core:leaves"},
range = 2,
fruits = {"mcl_core:apple"}
}
--mcl_core:birchleaves

treecapitator.register_tree{
trees = {"mcl_core:birchtree"},
leaves = {"mcl_core:birchleaves"},
range = 3,
}
-- mcl_core:darkleaves

treecapitator.register_tree{
trees = {"mcl_core:darktree"},
leaves = {"mcl_core:darkleaves"},
range = 4,
}
-- mcl_core:jungleleaves

treecapitator.register_tree{
trees = {"mcl_core:jungletree"},
leaves = {"mcl_core:jungleleaves"},
fruits = {"mcl_core:jungletree"},
range = 4,
range_up = 14,
range_down = 5,
trunk_fruit_vertical = true,
stem_height_min = 12,
}
--mcl_core:spruceleaves

treecapitator.register_tree{
trees = {"mcl_core:sprucetree"},
leaves = {"mcl_core:spruceleaves"},
range = 3,
}
--mcl_mangrove:mangroveleaves

treecapitator.register_tree{
trees = {"mcl_mangrove:mangrove_tree"},
leaves = {"mcl_mangrove:mangroveleaves"},
range = 3,
}
--mcl_cherry_blossom:cherrytree, mcl_cherry_blossom:cherryleaves

treecapitator.register_tree{
trees = {"mcl_cherry_blossom:cherrytree"},
leaves = {"mcl_cherry_blossom:cherryleaves"},
range = 3,
}

end

if minetest.get_modpath("default") then
if minetest.get_mapgen_setting"mg_name" == "v6" then
treecapitator.register_tree{
Expand Down