Updated api.txt

This commit is contained in:
TenPlus1 2016-05-01 10:44:43 +01:00
parent 240bd3f942
commit 8fa1a0e1cb

View File

@ -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 '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 '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) '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) '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 'arrow' if the attack_type is "shoot" or "dogshoot" then the entity name of the arrow is required
'shoot_interval' the minimum shoot interval 'shoot_interval' the minimum shoot interval