From 33ab5ee3c355e4c19e3b2cba950291a137c41a15 Mon Sep 17 00:00:00 2001 From: James David Clarke Date: Mon, 1 Jan 2024 18:39:41 +0000 Subject: [PATCH] Added support for mineclone2,mineclonia and mineclone5 --- mod.conf | 3 ++- trees.lua | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/mod.conf b/mod.conf index 03269f8..dc09aea 100644 --- a/mod.conf +++ b/mod.conf @@ -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 diff --git a/trees.lua b/trees.lua index 3b5dc8f..9162af4 100644 --- a/trees.lua +++ b/trees.lua @@ -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{