1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +02:00

mobs:can_spawn function added to check free space to spawn mob

This commit is contained in:
TenPlus1
2020-10-29 10:46:59 +00:00
parent 7f4d473fee
commit d12576f0c8
2 changed files with 79 additions and 57 deletions

View File

@ -660,6 +660,13 @@ Use this instead:
mob_class:line_of_sight(pos1, pos2, stepsize)
mobs:can_spawn(pos, name)
This function checks the surrounding area at [pos] to see if there is enough empty
space to spawn mob [name], if so then a new position is returned for use,
otherwise nil is returned.
External Settings for "minetest.conf"
------------------------------------