mobs api: document api additions

This commit is contained in:
cora 2022-05-19 14:19:57 +02:00
parent dfb74cf9e9
commit 9ccbf91706

View File

@ -253,6 +253,12 @@ functions needed for the mob to work properly which contains the following:
'fire_resistant' If true, the mob can't burn
'fire_damage_resistant' If true the mob will not take damage when burning
'ignited_by_sunlight' If true the mod will burn at daytime. (Takes sunlight_damage per second)
'nofollow' Do not follow players when they wield the "follow" item. For mobs (like villagers)
that are bred in a different way.
'pick_up' table of itemstrings the mob will pick up (e.g. for breeding)
'on_pick_up' function that will be called on item pickup - return true to not pickup the item
mobs:gopath(self,target,callback_arrived) pathfind a way to target and run callback on arrival