mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-24 16:20:19 +01:00
can now add 'nametag = "mob name"' in mob definition
This commit is contained in:
parent
68076c7626
commit
be7b6bc5fe
3
api.lua
3
api.lua
@ -14,7 +14,7 @@ local use_vh1 = minetest.get_modpath("visual_harm_1ndicators")
|
|||||||
-- Global
|
-- Global
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20231202",
|
version = "20231205",
|
||||||
translate = S,
|
translate = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
node_snow = minetest.registered_aliases["mapgen_snow"]
|
node_snow = minetest.registered_aliases["mapgen_snow"]
|
||||||
@ -3569,6 +3569,7 @@ minetest.register_entity(":" .. name, setmetatable({
|
|||||||
|
|
||||||
name = name,
|
name = name,
|
||||||
type = def.type,
|
type = def.type,
|
||||||
|
_nametag = def.nametag,
|
||||||
attack_type = def.attack_type,
|
attack_type = def.attack_type,
|
||||||
fly = def.fly,
|
fly = def.fly,
|
||||||
fly_in = def.fly_in,
|
fly_in = def.fly_in,
|
||||||
|
2
api.txt
2
api.txt
@ -561,7 +561,7 @@ This function registers a arrow for mobs with the attack type shoot.
|
|||||||
0 for no glow)
|
0 for no glow)
|
||||||
'rotate' integer value in degrees to rotate arrow
|
'rotate' integer value in degrees to rotate arrow
|
||||||
'on_step' is a custom function when arrow is active, nil for
|
'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
|
'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.
|
'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
|
'lifetime' contains float value for how many seconds arrow exists in
|
||||||
|
Loading…
Reference in New Issue
Block a user