can now add 'nametag = "mob name"' in mob definition

This commit is contained in:
tenplus1 2023-12-05 08:23:04 +00:00
parent 68076c7626
commit be7b6bc5fe
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ local use_vh1 = minetest.get_modpath("visual_harm_1ndicators")
-- Global
mobs = {
mod = "redo",
version = "20231202",
version = "20231205",
translate = S,
invis = minetest.global_exists("invisibility") and invisibility or {},
node_snow = minetest.registered_aliases["mapgen_snow"]
@ -3569,6 +3569,7 @@ minetest.register_entity(":" .. name, setmetatable({
name = name,
type = def.type,
_nametag = def.nametag,
attack_type = def.attack_type,
fly = def.fly,
fly_in = def.fly_in,

View File

@ -561,7 +561,7 @@ This function registers a arrow for mobs with the attack type shoot.
0 for no glow)
'rotate' integer value in degrees to rotate arrow
'on_step' is a custom function when arrow is active, nil for
default.
default. (self, dtime, moveresult)
'on_punch' is a custom function when arrow is punched, nil by default
'collisionbox' is hitbox table for arrow, {-.1,-.1,-.1,.1,.1,.1} by default.
'lifetime' contains float value for how many seconds arrow exists in