diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-25 15:02:14 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-25 15:02:14 +0000 |
commit | 8d8779da2f0d361f45878ea4404a58db04e00b85 (patch) | |
tree | d47d08e65f719b21b743847281cade55b051c9ca /api.txt | |
parent | 440d9874b5ecba2c674426d0b737c5c4e815bee5 (diff) |
udpate api.txt
Diffstat (limited to 'api.txt')
-rw-r--r-- | api.txt | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -140,7 +140,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), return with 'false' to skip remainder of mob API. + 'do_custom' a custom function that is called every tick 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) |