summaryrefslogtreecommitdiff
path: root/api_new.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-01-12 19:18:48 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-01-12 19:18:48 +0000
commit4bf4d42b07940f77f7333d94d3c0fcf93e5e5511 (patch)
treeb4b8bca16c762ca509bc6657cd330b2fdaf267f8 /api_new.txt
parent5751d98ab0c4e184099dc9da49100b78f0c616b7 (diff)
added multiple blood textures
Diffstat (limited to 'api_new.txt')
-rw-r--r--api_new.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/api_new.txt b/api_new.txt
index f278aa5..25d197c 100644
--- a/api_new.txt
+++ b/api_new.txt
@@ -105,7 +105,7 @@ functions needed for the mob to work properly which contains the following:
'blood_amount' contains the number of blood droplets to appear when
mob is hit.
'blood_texture' has the texture name to use for droplets e.g.
- "mobs_blood.png".
+ "mobs_blood.png", or table {"blood1.png", "blood2.png"}
'pathfinding' set to 1 for mobs to use pathfinder feature to locate
player, set to 2 so they can build/break also (only
works with dogfight attack).
@@ -250,7 +250,7 @@ enhance mob functionality and have them do many interesting things:
false to stop punch damage and knockback from taking place.
'custom_attack' when set this function is called instead of the normal mob
melee attack, parameters are (self, to_attack).
- 'on_die' a function that is called when mob is killed
+ 'on_die' a function that is called when mob is killed (self, pos)
'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