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

if mob jumps against wall 4 times then turn, moved back to old line_of_sight function

This commit is contained in:
TenPlus1
2018-11-01 09:49:15 +00:00
parent e545cc80f4
commit 71669d3c59
2 changed files with 91 additions and 3 deletions

View File

@ -126,7 +126,8 @@ functions needed for the mob to work properly which contains the following:
'pathfinding' set to 1 for mobs to use pathfinder feature to locate
player, set to 2 so they can build/break also (only
works with dogfight attack and when 'mobs_griefing'
in minetest.conf is not false).
in minetest.conf is not false). Adding {unbreakable=1}
to node groups stops them being broken by mobs.
'immune_to' is a table that holds specific damage when being hit by
certain items e.g.
{"default:sword_wood", 0} -- causes no damage.