forked from mtcontrib/mobs_redo
Updated api.txt
This commit is contained in:
parent
f8692e94e3
commit
093b8c9eed
2
api.txt
2
api.txt
|
@ -131,7 +131,7 @@ The mob api also has some preset variables and functions that it will remember f
|
|||
'self.owner' string used to set owner of npc mobs, typically used for dogs
|
||||
'self.order' set to "follow" or "stand" so that npc will follow owner or stand it's ground
|
||||
'on_die' a function that is called when mob is killed
|
||||
'do_custom' a custom function that is called while mob is active and which has access to all of the self.* variables e.g. (self.health for health or self.standing_in for node status)
|
||||
'do_custom' a custom function that is called while mob is active and which has access to all of the self.* variables e.g. (self.health for health or self.standing_in for node status), return with 'false' to skip remainder of mob API.
|
||||
|
||||
|
||||
mobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height, day_toggle)
|
||||
|
|
Loading…
Reference in New Issue
Block a user