summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-22 09:32:17 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-22 09:32:17 +0000
commit1bb95d742cfd50cbb2329f344a008f13809d753c (patch)
treee75cabffa3e45037ea429e440a6ba1170f216251 /api.txt
parent763fbee36d0c917c8b81f64021fa21178b1dd7c1 (diff)
add mobs:spawn_abm_check() function
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/api.txt b/api.txt
index 7b22cbe..f5bc365 100644
--- a/api.txt
+++ b/api.txt
@@ -346,6 +346,17 @@ only use the API of this mod by disabling the spawning of the default mobs in
this mod.
+mobs:spawn_abm_check(pos, node, name)
+
+This global function can be changed to contain additional checks for mobs to
+spawn e.g. mobs that spawn only in specific areas and the like. By returning
+true the mob will not spawn.
+
+ 'pos' holds the position of the spawning mob
+ 'node' contains the node the mob is spawning on top of
+ 'name' is the name of the animal/monster
+
+
Making Arrows
-------------