From 9ccbf91706e53ce7f3cc8cb8ccd7a0d49acd8f0d Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 19 May 2022 14:19:57 +0200 Subject: [PATCH] mobs api: document api additions --- mods/ENTITIES/mcl_mobs/api.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api.txt b/mods/ENTITIES/mcl_mobs/api.txt index eda74aeb42..1ae6ee53f9 100644 --- a/mods/ENTITIES/mcl_mobs/api.txt +++ b/mods/ENTITIES/mcl_mobs/api.txt @@ -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