1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-07-01 07:50:23 +02:00

add glow setting to mob entity, update api.txt

This commit is contained in:
TenPlus1
2020-01-09 09:38:46 +00:00
parent b9ad166821
commit 5958270158
2 changed files with 33 additions and 29 deletions

View File

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20191116",
version = "20200109",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
@ -3290,6 +3290,7 @@ minetest.register_entity(name, setmetatable({
jump_height = def.jump_height,
drawtype = def.drawtype, -- DEPRECATED, use rotate instead
rotate = math.rad(def.rotate or 0), -- 0=front, 90=side, 180=back, 270=side2
glow = def.glow,
lifetimer = def.lifetimer,
hp_min = max(1, (def.hp_min or 5) * difficulty),
hp_max = max(1, (def.hp_max or 10) * difficulty),