1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +02:00

add mobs:add_mob() function

This commit is contained in:
tenplus1
2020-06-22 21:24:06 +01:00
parent ec122aa6de
commit e63b1b478e
2 changed files with 117 additions and 3 deletions

12
api.txt
View File

@ -328,6 +328,18 @@ for each mob.
'self.nametag' contains the name of the mob which it can show above
Adding Mobs in World
--------------------
mobs:add_mob(pos, {
name = "mobs_animal:chicken",
child = true,
owner = "singleplayer",
nametag = "Bessy",
ignore_count = true -- ignores mob count per map area
})
Spawning Mobs in World
----------------------