summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-08-03 09:34:36 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-08-03 09:34:36 +0100
commite944712c903162c7448d443ba91b7eea43a9b4b0 (patch)
tree873600852ea4926381a40578a133af676e3bafd0 /api.txt
parenta470ac7cc1786c188866ca57d4a0d13e3e8f37d0 (diff)
Added MarkBu's new mob:spawn command
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/api.txt b/api.txt
index 85900ee..f421b98 100644
--- a/api.txt
+++ b/api.txt
@@ -152,6 +152,13 @@ These functions register a spawn algorithm for the mob. Without this function th
'max_height' is the maximum height the mob can spawn
'day_toggle' true for day spawning, false for night or nil for anytime
+... also a simpler way to handle mob spawns has been added with the mobs:spawn(def) command which uses above names to make settings clearer:
+
+ mobs:spawn({name = "mobs_monster:tree_monster",
+ nodes = {"group:leaves"},
+ max_light = 7,
+ })
+
Players can override the spawn chance for each mob registered by adding a line to their minetest.conf file with a new value, the lower the value the more each mob will spawn e.g.