From 26215cd221d6e5681630023e2e30a361488046d3 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 23 Aug 2024 17:37:51 +0100 Subject: [PATCH] add min_y and max_y to spawning abm/lbm's --- api.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.lua b/api.lua index 1225d8d..5268a9b 100644 --- a/api.lua +++ b/api.lua @@ -3924,6 +3924,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, inter label = name .. " spawning", nodenames = nodes, run_at_every_load = false, + min_y = min_height, max_y = max_height, action = function(pos, node) spawn_action(pos, node) @@ -3937,6 +3938,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, inter interval = interval, chance = max(1, (chance * mob_chance_multiplier)), catch_up = false, + min_y = min_height, max_y = max_height, action = function(pos, node, active_object_count, active_object_count_wider) spawn_action(pos, node, active_object_count, active_object_count_wider)