mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-02-03 20:40:23 +01:00
update api.txt
This commit is contained in:
parent
4b556a4d16
commit
a3ede86365
5
api.txt
5
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
|
'on_grown' is called when a child mob has grown up, only paramater is
|
||||||
(self).
|
(self).
|
||||||
'do_punch' called when mob is punched with paramaters (self, hitter,
|
'do_punch' called when mob is punched with paramaters (self, hitter,
|
||||||
time_from_last_punch, tool_capabilities, direction), return
|
time_from_last_punch, tool_capabilities, direction, damage),
|
||||||
false to stop punch damage and knockback from taking place.
|
return false to stop punch damage and knockback from taking
|
||||||
|
place.
|
||||||
'custom_attack' when set this function is called instead of the normal mob
|
'custom_attack' when set this function is called instead of the normal mob
|
||||||
melee attack, parameters are (self, to_attack) and if true
|
melee attack, parameters are (self, to_attack) and if true
|
||||||
is returned normal attack function continued.
|
is returned normal attack function continued.
|
||||||
|
Loading…
Reference in New Issue
Block a user