summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-05-01 10:44:43 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-05-01 10:44:43 +0100
commit8fa1a0e1cb3e4c3b28721183a54a632de8f5f20a (patch)
treeb81649570c45cf1b50a92ae8000e1b26e259d813 /api.txt
parent240bd3f94265ec9aa9720c8ebd2b375b1bb84334 (diff)
Updated api.txt
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api.txt b/api.txt
index 3053cc1..f81f9da 100644
--- a/api.txt
+++ b/api.txt
@@ -80,6 +80,7 @@ This functions registers a new mob as a Minetest entity.
'explode' follows player in range and will flash and explode when in reach
'dogshoot' shoots arrows when in range and one on one attack when in reach
'custom_attack' is a function that is called when mob is in range to attack player, parameters are (self, to_attack)
+ 'on_blast' is called when TNT explodes near mob, function uses (object, damage) and returns (do_damage, do_knockback, drops)
'explosion_radius' radius of explosion attack (defaults to 1)
'arrow' if the attack_type is "shoot" or "dogshoot" then the entity name of the arrow is required
'shoot_interval' the minimum shoot interval