summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-09-01 12:27:31 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-09-01 12:27:31 +0100
commitd28c4100950df54fe0d57d573e1f3ba0b5d4a0d1 (patch)
tree9621c8cace8ebc3cf10fb1114083963e34e59604 /api.txt
parentf19960e5db01b9cac0e897010a7937f8793d27ee (diff)
added on_spawn function to mobs registry
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/api.txt b/api.txt
index 90a5966..5fbcbfe 100644
--- a/api.txt
+++ b/api.txt
@@ -1,5 +1,5 @@
-MOB API (13th July 2017)
+MOB API (1st September 2017)
The mob api is a function that can be called on by other mods to add new animals or monsters into minetest.
@@ -94,6 +94,7 @@ This functions registers a new mob as a Minetest entity.
'shoot_interval' the minimum shoot interval
'shoot_offset' +/- value to position arrow/fireball when fired
'reach' how far a reach this mob has, default is 3
+ 'on_spawn' is a custom function that runs on mob spawn with 'self' as variable, return true at end of function to run onyl once.
'sounds' this is a table with sounds of the mob
'random' random sounds during gameplay
'war_cry' sound when starting to attack player