From 87a997ba4a13e6e35e2e411c7c21553ae65a76c5 Mon Sep 17 00:00:00 2001 From: Niklp <89982526+Niklp09@users.noreply.github.com> Date: Fri, 19 Aug 2022 19:48:09 +0200 Subject: [PATCH 1/2] speed up coconut spawn ABM --- cocos_palm.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cocos_palm.lua b/cocos_palm.lua index 127f328..b1d3cdf 100644 --- a/cocos_palm.lua +++ b/cocos_palm.lua @@ -80,8 +80,11 @@ end -- ABM converts the trunk to a regular fruit trunk, and spawns some coconuts) minetest.register_abm({ nodenames = { "moretrees:palm_fruit_trunk_gen" }, - interval = 1, + interval = 6, chance = 1, + min_y = biome_lib.mapgen_elevation_limit.min, + max_y = biome_lib.mapgen_elevation_limit.max, + label = "converts palm trunk to a regular fruit trunk, and spawns some coconuts", action = function(pos, node, active_object_count, active_object_count_wider) minetest.swap_node(pos, {name="moretrees:palm_fruit_trunk"}) local poslist = minetest.find_nodes_in_area( From 8103aaae79cf658905be8aa7f42fe11c472c0de1 Mon Sep 17 00:00:00 2001 From: fluxionary <25628292+fluxionary@users.noreply.github.com> Date: Thu, 25 Aug 2022 17:15:31 -0700 Subject: [PATCH 2/2] fix typo to limit polar leaves drops to 1 (#15) --- node_defs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_defs.lua b/node_defs.lua index 863db71..8db6e40 100644 --- a/node_defs.lua +++ b/node_defs.lua @@ -558,7 +558,7 @@ end local poplar_leaves_drop = minetest.registered_nodes["moretrees:poplar_leaves"].drop minetest.override_item("moretrees:poplar_leaves", { drop = { - max_items = poplar_leaves_drop.maxitems, + max_items = poplar_leaves_drop.max_items, items = { {items = {"moretrees:poplar_sapling"}, rarity = 1.33 * poplar_leaves_drop.items[1].rarity }, {items = {"moretrees:poplar_small_sapling"}, rarity = 1.33 * poplar_leaves_drop.items[1].rarity },