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

add mobs:is_node_dangerous(self, nodename) global function

This commit is contained in:
TenPlus1
2022-01-15 09:41:21 +00:00
parent e5d1958e16
commit e83620553d
2 changed files with 12 additions and 2 deletions

View File

@ -691,6 +691,12 @@ space to spawn mob [name], if so then a new position is returned for use,
otherwise nil is returned.
mobs:is_node_dangerous(self, nodename)
This function returns true if the node name given is harmful to the mob (self), it is
mainly used when a mob is near a node it has to avoid.
External Settings for "minetest.conf"
------------------------------------