From 8d8779da2f0d361f45878ea4404a58db04e00b85 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 25 Feb 2017 15:02:14 +0000 Subject: [PATCH] udpate api.txt --- api.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.txt b/api.txt index 476c0f5..3c7a377 100644 --- a/api.txt +++ b/api.txt @@ -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)