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

add mob_class:go_to(pos) function

This commit is contained in:
tenplus1
2024-05-24 17:28:35 +01:00
parent be2d630fdf
commit 1536b9a5fc
2 changed files with 31 additions and 2 deletions

View File

@ -419,7 +419,9 @@ mob_class:day_docile() -- return True if mob docile during current daytime
mob_class:mob_expire(pos, dtime) -- check if mob is to despawn
mob_class:get_nodes() -- get specific nodes around mob
mob_class:on_blast(damage) -- function called when mob in blast area
mob_class:is_inside(itemtable) -- returns True is mob collisionbox inside any node/group in table
mob_class:is_inside(itemtable) -- returns True is mob collisionbox inside any node/group
in table
mob_class:go_to(pos) -- makes mob go to that position or nearby
Adding Mobs in World