diff --git a/api.lua b/api.lua index 6b28b31..150c0cb 100644 --- a/api.lua +++ b/api.lua @@ -8,7 +8,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20210418", + version = "20210504", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -4127,7 +4127,10 @@ function mobs:register_arrow(name, def) minetest.register_entity(name, { - physical = false, + physical = def.physical or false, + collide_with_objects = def.collide_with_objects or false, + static_save = false, + visual = def.visual, visual_size = def.visual_size, textures = def.textures, diff --git a/api.txt b/api.txt index 72473a8..2c0df2b 100644 --- a/api.txt +++ b/api.txt @@ -465,6 +465,8 @@ This function registers a arrow for mobs with the attack type shoot. 'visual' same is in minetest.register_entity() 'visual_size' same is in minetest.register_entity() 'textures' same is in minetest.register_entity() + 'physical' same is in minetest.register_entity() [default: false] + '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 'hit_player' a function that is called when the arrow hits a player;