From 959bf2df582c2a9ddb6364ad65b09295bf5ae32c Mon Sep 17 00:00:00 2001 From: philipmi Date: Sat, 26 Mar 2022 21:51:30 +0100 Subject: [PATCH] Add support for australia and aotearoa --- README.md | 2 +- depends.txt | 2 ++ init.lua | 15 +++++++++++++++ mod.conf | 2 +- 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 96772a0..9fe570b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Info This mod causes fruits on trees from various other mods to regrow like apples in the 5.0 release of Minetest Game. If you placed the fruits by hand or removed the tree leaves, the fruits don't regrow. -Cool_trees modpack, ethereal, farming_plus, multibiomegen and moretrees are supported, but maybe there are other mods with this problem that I don't know about. Please tell me in the Minetest Forum topic! +Cool_trees modpack, ethereal, farming_plus, multibiomegen, australia, aotearoa and moretrees are supported, but maybe there are other mods with this problem that I don't know about. Please tell me in the Minetest Forum topic! Default apples in older versions than Minetest 5.0 will also regrow. diff --git a/depends.txt b/depends.txt index c92ebf6..81111aa 100644 --- a/depends.txt +++ b/depends.txt @@ -13,3 +13,5 @@ pomegranate? moretrees? farming_plus? multibiomegen? +australia? +aotearoa? \ No newline at end of file diff --git a/init.lua b/init.lua index e863e3b..5d9a0a2 100644 --- a/init.lua +++ b/init.lua @@ -137,6 +137,21 @@ for i=0,230 do add_fruit_regrowable("fruit_"..i, "multibiomegen:fruit_"..i, "multibiomegen:leaf_"..i) end +-- australia +add_fruit_regrowable("australia_cherry", "australia:cherry", "australia:cherry_leaves") +add_fruit_regrowable("lilly_pilly_berries", "australia:lilly_pilly_berries", "australia:lilly_pilly_leaves") +add_fruit_regrowable("macadamia", "australia:macadamia", "australia:macadamia_leaves") +add_fruit_regrowable("mangrove_apple", "australia:mangrove_apple", "australia:mangrove_apple_leaves") +add_fruit_regrowable("moreton_bay_fig", "australia:moreton_bay_fig", "australia:moreton_bay_fig_leaves") +add_fruit_regrowable("quandong", "australia:quandong", "australia:quandong_leaves") + +-- aotearoa +add_fruit_regrowable("karaka_fruit", "aotearoa:karaka_fruit", "aotearoa:karaka_leaves") +add_fruit_regrowable("miro_fruit", "aotearoa:miro_fruit", "aotearoa:miro_leaves") +add_fruit_regrowable("tawa_fruit", "aotearoa:tawa_fruit", "aotearoa:tawa_leaves") +add_fruit_regrowable("hinau_fruit", "aotearoa:hinau_fruit", "aotearoa:hinau_leaves") +add_fruit_regrowable("kawakawa_fruit", "aotearoa:kawakawa_fruit", "aotearoa:kawakawa_leaves") + -- aliases minetest.register_alias("regrowing_fruits:goldapple_mark", "regrowing_fruits:golden_apple_mark") minetest.register_alias("regrowing_fruits:coollemon_mark", "regrowing_fruits:cool_lemon_mark") diff --git a/mod.conf b/mod.conf index 0c86426..441b7d9 100644 --- a/mod.conf +++ b/mod.conf @@ -1,6 +1,6 @@ name = regrowing_fruits author = philipmi depends = -optional_depends = default, ethereal, cacaotree, cherrytree, chestnuttree, clementinetree, ebony, lemontree, oak, palm, plumtree, pomegranate, moretrees, farming_plus, multibiomegen +optional_depends = default, ethereal, cacaotree, cherrytree, chestnuttree, clementinetree, ebony, lemontree, oak, palm, plumtree, pomegranate, moretrees, farming_plus, multibiomegen, australia, aotearoa description = Fruits on trees from various mods will regrow. title = Regrowing Fruits