From a3ede863657f90aac9a4d40dc78526efb1733330 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 19 Jan 2025 08:15:33 +0000 Subject: [PATCH] update api.txt --- api.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api.txt b/api.txt index 613647e..9aa2eb1 100644 --- a/api.txt +++ b/api.txt @@ -331,8 +331,9 @@ enhance mob functionality and have them do many interesting things: 'on_grown' is called when a child mob has grown up, only paramater is (self). 'do_punch' called when mob is punched with paramaters (self, hitter, - time_from_last_punch, tool_capabilities, direction), return - false to stop punch damage and knockback from taking place. + time_from_last_punch, tool_capabilities, direction, damage), + return false to stop punch damage and knockback from taking + place. 'custom_attack' when set this function is called instead of the normal mob melee attack, parameters are (self, to_attack) and if true is returned normal attack function continued.