mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-03-29 15:30:29 +01:00
update api.txt
This commit is contained in:
parent
ba988d514c
commit
92b1a253f0
2
api.txt
2
api.txt
@ -303,7 +303,7 @@ enhance mob functionality and have them do many interesting things:
|
|||||||
|
|
||||||
'on_rightclick' its same as in minetest.register_entity()
|
'on_rightclick' its same as in minetest.register_entity()
|
||||||
'on_blast' is called when an explosion happens near mob when using TNT
|
'on_blast' is called when an explosion happens near mob when using TNT
|
||||||
functions, parameters are (object, damage) and returns
|
functions, parameters are (damage) and returns
|
||||||
(do_damage, do_knockback, drops)
|
(do_damage, do_knockback, drops)
|
||||||
'on_spawn' is a custom function that runs on mob spawn with 'self' as
|
'on_spawn' is a custom function that runs on mob spawn with 'self' as
|
||||||
variable, return true at end of function to run only once.
|
variable, return true at end of function to run only once.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user