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

tweak collision, falling and arrow drops.

This commit is contained in:
tenplus1
2024-09-14 12:25:52 +01:00
parent e55bf4d951
commit e8e774566b
2 changed files with 21 additions and 20 deletions

View File

@ -560,7 +560,9 @@ This function registers a arrow for mobs with the attack type shoot.
'textures' same is in minetest.register_entity()
'collide_with_objects' same as above
'velocity' the velocity of the arrow
'drop' if set to true any arrows hitting a node will drop as item
'drop' if set to true any arrows hitting a node will drop as item,
if number given then chance (1/num) of item dropping will
be used. arrow "mymob:myarrow" will use item of same name.
'hit_player' a function that is called when the arrow hits a player;
this function should hurt the player, the parameters are
(self, player)