diff --git a/api.lua b/api.lua index 816505b..449a925 100644 --- a/api.lua +++ b/api.lua @@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20190628", + version = "20190630", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {}, } @@ -3509,7 +3509,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, end -- only spawn away from player - local objs = minetest.get_objects_inside_radius(pos, 10) + local objs = minetest.get_objects_inside_radius(pos, 8) for n = 1, #objs do diff --git a/api.txt b/api.txt index f45b818..9f1888b 100644 --- a/api.txt +++ b/api.txt @@ -624,8 +624,14 @@ Players can override the spawn chance for each mob registered by adding a line to their minetest.conf file with a new value, the lower the value the more each mob will spawn e.g. -mobs_animal:sheep_chance 11000 -mobs_monster:sand_monster_chance 100 +mobs_animal:sheep 11000 +mobs_monster:sand_monster 100 + +...you can also change how many of a certain mob appear in an active mapblock by +adding a comma and then a new value e.g. + +mobs_animal:cow 8000,4 <-- 4 cows per mapblock at 8000 spawn chance +mobs_monster:dirt_monster ,20 <-- 20 dirt monsters per mapblock Rideable Horse Example Mob