diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-03-17 13:06:36 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-03-17 13:06:36 +0000 |
commit | 80a86b658c4cab24d289b558236fe6d632ae532a (patch) | |
tree | 41ff18517a87260838d9b2887c00de4dfb1d056a /api.txt | |
parent | 1205ec36a68cb498a8eb489e03de7030e9e92a61 (diff) |
Separated dogshoot timers for different shoot/fight timings
Diffstat (limited to 'api.txt')
-rw-r--r-- | api.txt | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -82,7 +82,8 @@ 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 'dogshoot_switch' allows switching between shoot and dogfight modes inside dogshoot using timer (1 = shoot, 2 = dogfight) - 'dogshoot_count_max' number of seconds before switching above modes. + 'dogshoot_count_max' number of seconds before switching to dogfight mode. + 'dogshoot_count2_max' number of seconds before switching back to shoot mode. 'custom_attack' is a function that is called when mob is in range to attack player, parameters are (self, to_attack) 'double_melee_attack' if false then api will choose randomly between 'punch' and 'punch2' attack animations 'on_blast' is called when TNT explodes near mob, function uses (object, damage) and returns (do_damage, do_knockback, drops) |