mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
mobs cannot spawn within 8 blocks of player, update api.txt
This commit is contained in:
parent
06dbdb1c44
commit
1a85cf7e2c
4
api.lua
4
api.lua
@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20190628",
|
version = "20190630",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
}
|
}
|
||||||
@ -3509,7 +3509,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- only spawn away from player
|
-- 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
|
for n = 1, #objs do
|
||||||
|
|
||||||
|
10
api.txt
10
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
|
to their minetest.conf file with a new value, the lower the value the more each
|
||||||
mob will spawn e.g.
|
mob will spawn e.g.
|
||||||
|
|
||||||
mobs_animal:sheep_chance 11000
|
mobs_animal:sheep 11000
|
||||||
mobs_monster:sand_monster_chance 100
|
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
|
Rideable Horse Example Mob
|
||||||
|
Loading…
Reference in New Issue
Block a user