From 363ec856ee810d6098ebe155aee911c7cdeb6198 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 24 Mar 2019 20:37:06 +0000 Subject: [PATCH] added 5.0 pine bush sapling and additional flowers --- README.md | 2 +- depends.txt | 1 + init.lua | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a23742d..e3ed954 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,6 @@ Changelog: - 0.9 - Added support for farming redo's pea and beetroot crops, checks for place_param - 1.0 - add_deco() now adds to existing item list while set_deco() replaces item list (thanks h-v-smacker) - 1.1 - Added {can_bonemeal=1} group for special nodes -- 1.2 - Added support for minetest 5.0 cactus seedling, blueberry bush sapling and emergent jungle tree saplings. +- 1.2 - Added support for minetest 5.0 cactus seedling, blueberry bush sapling and emergent jungle tree saplings, additional flowers and pine bush sapling. Lucky Blocks: 6 diff --git a/depends.txt b/depends.txt index d9ae766..ecc66d1 100644 --- a/depends.txt +++ b/depends.txt @@ -5,3 +5,4 @@ ethereal? moretrees? technic_worldgen? lucky_block? +flowers? diff --git a/init.lua b/init.lua index 8eae908..70e54b0 100644 --- a/init.lua +++ b/init.lua @@ -45,6 +45,7 @@ local saplings = { {"default:acacia_bush_sapling", default.grow_acacia_bush, "soil"}, {"default:large_cactus_seedling", default.grow_large_cactus, "sand"}, {"default:blueberry_bush_sapling", default.grow_blueberry_bush, "soil"}, + {"default:pine_bush_sapling", default.grow_pine_bush, "soil"}, } -- helper tables ( "" denotes a blank item ) @@ -63,6 +64,12 @@ local flowers = { "flowers:rose", "flowers:tulip", "flowers:viola", "" } +-- 5.0 flower check +if minetest.registered_nodes["flowers:tulip_black"] then + flowers[8] = "flowers:tulip_black" + flowers[9] = "flowers:chrysanthemum_green" +end + -- add additional bakedclay flowers if enabled if minetest.get_modpath("bakedclay") then flowers[7] = "bakedclay:delphinium"