1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-23 17:20:22 +01:00

mobs cannot spawn within 8 blocks of player, update api.txt

This commit is contained in:
TenPlus1 2019-06-30 10:35:34 +01:00
parent 06dbdb1c44
commit 1a85cf7e2c
2 changed files with 10 additions and 4 deletions

View File

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

10
api.txt
View File

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