1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-11-14 06:20:20 +01:00

speed up coconut spawn ABM

This commit is contained in:
Niklp 2022-08-19 19:48:09 +02:00 committed by GitHub
parent cbe846dfde
commit 87a997ba4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(