summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-07-13 10:16:24 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-07-13 10:16:24 +0100
commit7fba32b8d9933dc1dbb73774f192d13d209b0746 (patch)
tree1542a0f1ec3f276b00e83ed72bce114a9fe43c12 /api.txt
parentf985d00b6115cf31a8beeb7cefdaa5e0fcf78b66 (diff)
added mobs:boom functin to replace mobs:explosion
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/api.txt b/api.txt
index e2498e9..a8a1c04 100644
--- a/api.txt
+++ b/api.txt
@@ -1,5 +1,5 @@
-MOB API (8th July 2017)
+MOB API (13th July 2017)
The mob api is a function that can be called on by other mods to add new animals or monsters into minetest.
@@ -229,15 +229,14 @@ This function registers a spawn egg which can be used by admin to properly spawn
'no_creative' when set to true this stops spawn egg appearing in creative mode for destructive mobs like Dungeon Masters
-mobs:explosion(pos, radius, fire, smoke) -- DEPRECATED!!! use tnt mod's tnt.boom function instead
+mobs:explosion(pos, radius) -- DEPRECATED!!! use mobs:boom() instead
-This function generates an explosion which removes nodes in a specific radius and replace them with fire or air. Protection nodes, obsidian and locked chests will not be destroyed although a normal chest will drop it's contents.
+mobs:boom(self, pos, radius)
+This function generates an explosion which removes nodes in a specific radius and damages any entity caught inside the blast radius. Protection will limit node destruction but not entity damage.
+ 'self' mob entity
'pos' centre position of explosion
'radius' radius of explosion (typically set to 3)
- 'fire' should fire appear in explosion (1=yes, 0=no)
- 'smoke' should smoke appear in explosion (1=yes, 0=no)
- 'sound' sound played when mob explodes
mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso, force_take, replacewith)