From f09b6d173065c8f5f1dad103a953aafc1c757955 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 20 Jan 2025 08:00:26 +0000 Subject: [PATCH] pass mesh to arrow (thx kiedtl) --- api.lua | 3 ++- api.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index d323279..2d44e51 100644 --- a/api.lua +++ b/api.lua @@ -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, diff --git a/api.txt b/api.txt index 9aa2eb1..82cda95 100644 --- a/api.txt +++ b/api.txt @@ -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