1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-01-24 16:20:19 +01:00

pass mesh to arrow (thx kiedtl)

This commit is contained in:
tenplus1 2025-01-20 08:00:26 +00:00
parent a3ede86365
commit f09b6d1730
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ end
-- Global table
mobs = {
mod = "redo", version = "20250118",
mod = "redo", version = "20250120",
spawning_mobs = {}, translate = S,
node_snow = has(minetest.registered_aliases["mapgen_snow"])
or has("mcl_core:snow") or has("default:snow") or "air",
@ -3827,6 +3827,7 @@ function mobs:register_arrow(name, def)
static_save = false,
visual = def.visual,
visual_size = def.visual_size,
mesh = def.mesh,
textures = def.textures,
collisionbox = def.collisionbox or {-.1, -.1, -.1, .1, .1, .1},
glow = def.glow,

View File

@ -567,6 +567,7 @@ This function registers a arrow for mobs with the attack type shoot.
'definition' is a table with the following values:
'visual' same is in minetest.register_entity()
'visual_size' same is in minetest.register_entity()
'mesh' same is in minetest.register_entity()
'textures' same is in minetest.register_entity()
'collide_with_objects' same as above
'velocity' the velocity of the arrow