0
0
Fork 0

lack of initial_properties Deprecation warning for entities solved mostly. fixes #4090

This commit is contained in:
James Clarke 2024-01-15 01:53:48 +00:00 committed by James Clarke
parent 59ad110e6b
commit 3cf8655b4e
50 changed files with 206 additions and 107 deletions

View File

@ -184,12 +184,14 @@ local entity_mapping = {}
local function register_entity(entity_id, mesh, textures, drop, on_rightclick, on_activate_by_rail)
local cart = {
physical = false,
collisionbox = {-10/16., -0.5, -10/16, 10/16, 0.25, 10/16},
visual = "mesh",
mesh = mesh,
visual_size = {x=1, y=1},
textures = textures,
initial_properties = {
physical = false,
collisionbox = {-10/16., -0.5, -10/16, 10/16, 0.25, 10/16},
visual = "mesh",
mesh = mesh,
visual_size = {x=1, y=1},
textures = textures,
},
on_rightclick = on_rightclick,

View File

@ -5,8 +5,10 @@ local axolotl = {
spawn_class = "axolotl",
can_despawn = true,
passive = false,
hp_min = 14,
hp_max = 14,
initial_properties = {
hp_min = 14,
hp_max = 14
},
xp_min = 1,
xp_max = 7,

View File

@ -21,8 +21,10 @@ mcl_mobs.register_mob("mobs_mc:bat", {
can_despawn = true,
spawn_in_group = 8,
passive = true,
hp_min = 6,
hp_max = 6,
initial_properties = {
hp_min = 6,
hp_max = 6
},
collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.89, 0.25},
visual = "mesh",
mesh = "mobs_mc_bat.b3d",

View File

@ -21,8 +21,10 @@ mcl_mobs.register_mob("mobs_mc:blaze", {
spawn_class = "hostile",
spawn_in_group_min = 2,
spawn_in_group = 3,
hp_min = 20,
hp_max = 20,
initial_properties = {
hp_min = 20,
hp_max = 20,
},
xp_min = 10,
xp_max = 10,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.79, 0.3},

View File

@ -14,8 +14,10 @@ mcl_mobs.register_mob("mobs_mc:chicken", {
spawn_class = "passive",
passive = true,
runaway = true,
hp_min = 4,
hp_max = 4,
initial_properties = {
hp_min = 4,
hp_max = 4,
},
xp_min = 1,
xp_max = 3,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.69, 0.2},

View File

@ -34,8 +34,10 @@ local cod = {
spawn_class = "water_ambient",
can_despawn = true,
passive = true,
hp_min = 3,
hp_max = 3,
initial_properties = {
hp_min = 3,
hp_max = 3
},
xp_min = 1,
xp_max = 3,
armor = 100,

View File

@ -8,8 +8,10 @@ local cow_def = {
spawn_class = "passive",
passive = true,
runaway = true,
hp_min = 10,
hp_max = 10,
initial_properties = {
hp_min = 10,
hp_max = 10
},
xp_min = 1,
xp_max = 3,
collisionbox = {-0.45, -0.01, -0.45, 0.45, 1.39, 0.45},

View File

@ -14,8 +14,10 @@ mcl_mobs.register_mob("mobs_mc:creeper", {
type = "monster",
spawn_class = "hostile",
spawn_in_group = 1,
hp_min = 20,
hp_max = 20,
initial_properties = {
hp_min = 20,
hp_max = 20
},
xp_min = 5,
xp_max = 5,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.69, 0.3},

View File

@ -34,8 +34,10 @@ local dolphin = {
spawn_class = "water",
can_despawn = true,
passive = true,
hp_min = 10,
hp_max = 10,
initial_properties = {
hp_min = 10,
hp_max = 10
},
xp_min = 1,
xp_max = 3,
armor = 100,

View File

@ -55,8 +55,10 @@ mcl_mobs.register_mob("mobs_mc:enderdragon", {
pathfinding = 1,
attacks_animals = true,
walk_chance = 100,
hp_max = 200,
hp_min = 200,
initial_properties = {
hp_max = 200,
hp_min = 200,
},
xp_min = 500,
xp_max = 500,
collisionbox = {-2, 3, -2, 2, 5, 2},

View File

@ -261,8 +261,10 @@ mcl_mobs.register_mob("mobs_mc:enderman", {
can_despawn = true,
passive = true,
pathfinding = 1,
hp_min = 40,
hp_max = 40,
initial_properties = {
hp_min = 40,
hp_max = 40
},
xp_min = 5,
xp_max = 5,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 2.89, 0.3},

View File

@ -9,8 +9,10 @@ mcl_mobs.register_mob("mobs_mc:endermite", {
type = "monster",
spawn_class = "hostile",
passive = false,
hp_min = 8,
hp_max = 8,
initial_properties = {
hp_min = 8,
hp_max = 8
},
xp_min = 3,
xp_max = 3,
armor = {fleshy = 100, arthropod = 100},

View File

@ -16,8 +16,10 @@ mcl_mobs.register_mob("mobs_mc:ghast", {
spawn_class = "hostile",
pathfinding = 1,
group_attack = true,
hp_min = 10,
hp_max = 10,
initial_properties = {
hp_min = 10,
hp_max = 10
},
xp_min = 5,
xp_max = 5,
collisionbox = {-2, 5, -2, 2, 9, 2},

View File

@ -34,8 +34,10 @@ mcl_mobs.register_mob("mobs_mc:glow_squid", {
spawn_class = "water_underground",
can_despawn = true,
passive = true,
hp_min = 10,
hp_max = 10,
initial_properties = {
hp_min = 10,
hp_max = 10,
},
xp_min = 1,
xp_max = 3,
armor = 100,

View File

@ -10,8 +10,10 @@ mcl_mobs.register_mob("mobs_mc:guardian", {
spawn_class = "hostile",
spawn_in_group_min = 2,
spawn_in_group = 4,
hp_min = 30,
hp_max = 30,
initial_properties = {
hp_min = 30,
hp_max = 30,
},
xp_min = 10,
xp_max = 10,
breath_max = -1,

View File

@ -10,8 +10,10 @@ mcl_mobs.register_mob("mobs_mc:guardian_elder", {
description = S("Elder Guardian"),
type = "monster",
spawn_class = "hostile",
hp_min = 80,
hp_max = 80,
initial_properties = {
hp_min = 80,
hp_max = 80,
},
xp_min = 10,
xp_max = 10,
breath_max = -1,

View File

@ -14,8 +14,10 @@ local hoglin = {
type = "monster",
passive = false,
spawn_class = "hostile",
hp_min = 40,
hp_max = 40,
initial_properties = {
hp_min = 40,
hp_max = 40,
},
xp_min = 9,
xp_max = 9,
armor = {fleshy = 90},

View File

@ -151,8 +151,10 @@ local horse = {
"mcl_farming:carrot_item_gold",
},
passive = true,
hp_min = 15,
hp_max = 30,
initial_properties = {
hp_min = 15,
hp_max = 30
},
xp_min = 1,
xp_max = 3,
floats = 1,

View File

@ -18,8 +18,10 @@ mcl_mobs.register_mob("mobs_mc:iron_golem", {
type = "npc",
spawn_class = "passive",
passive = false,
hp_min = 100,
hp_max = 100,
initial_properties = {
hp_min = 100,
hp_max = 100,
},
breath_max = -1,
collisionbox = {-0.7, -0.01, -0.7, 0.7, 2.69, 0.7},
visual = "mesh",

View File

@ -66,8 +66,10 @@ mcl_mobs.register_mob("mobs_mc:llama", {
curiosity = 60,
head_yaw = "z",
hp_min = 15,
hp_max = 30,
initial_properties = {
hp_min = 15,
hp_max = 30,
},
xp_min = 1,
xp_max = 3,
collisionbox = {-0.45, -0.01, -0.45, 0.45, 1.86, 0.45},

View File

@ -32,8 +32,10 @@ local ocelot = {
can_despawn = true,
spawn_in_group = 3,
spawn_in_group_min = 1,
hp_min = 10,
hp_max = 10,
initial_properties = {
hp_min = 10,
hp_max = 10
},
xp_min = 1,
xp_max = 3,
head_swivel = "head.control",

View File

@ -131,8 +131,10 @@ mcl_mobs.register_mob("mobs_mc:parrot", {
spawn_class = "passive",
passive = true,
pathfinding = 1,
hp_min = 6,
hp_max = 6,
initial_properties = {
hp_min = 6,
hp_max = 6
},
xp_min = 1,
xp_max = 3,
head_swivel = "head.control",

View File

@ -8,8 +8,10 @@ mcl_mobs.register_mob("mobs_mc:pig", {
spawn_class = "passive",
passive = true,
runaway = true,
hp_min = 10,
hp_max = 10,
initial_properties = {
hp_min = 10,
hp_max = 10
},
xp_min = 1,
xp_max = 3,
collisionbox = {-0.45, -0.01, -0.45, 0.45, 0.865, 0.45},

View File

@ -231,8 +231,10 @@ local zombified_piglin = {
type = "animal",
passive = false,
spawn_class = "passive",
hp_min = 20,
hp_max = 20,
initial_properties = {
hp_min = 20,
hp_max = 20,
},
xp_min = 6,
xp_max = 6,
armor = {undead = 90, fleshy = 90},

View File

@ -19,8 +19,10 @@ pillager = {
description = S("Pillager"),
type = "monster",
spawn_class = "hostile",
hp_min = 24,
hp_max = 24,
initial_properties = {
hp_min = 24,
hp_max = 24,
},
xp_min = 6,
xp_max = 6,
breath_max = -1,

View File

@ -13,8 +13,10 @@ mcl_mobs.register_mob("mobs_mc:polar_bear", {
spawn_class = "passive",
runaway = false,
passive = false,
hp_min = 30,
hp_max = 30,
initial_properties = {
hp_min = 30,
hp_max = 30,
},
xp_min = 1,
xp_max = 3,
breath_max = -1,

View File

@ -10,10 +10,12 @@ local rabbit = {
spawn_in_group = 3,
passive = true,
reach = 1,
hp_min = 3,
hp_max = 3,
xp_min = 1,
xp_max = 3,
initial_properties = {
hp_min = 3,
hp_max = 3,
xp_min = 1,
xp_max = 3,
},
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.49, 0.2},
head_swivel = "head.control",
bone_eye_height = 2,

View File

@ -14,8 +14,10 @@ local salmon = {
spawn_class = "water_ambient",
can_despawn = true,
passive = true,
hp_min = 3,
hp_max = 3,
initial_properties = {
hp_min = 3,
hp_max = 3,
},
xp_min = 1,
xp_max = 3,
armor = 100,

View File

@ -59,8 +59,10 @@ mcl_mobs.register_mob("mobs_mc:sheep", {
type = "animal",
spawn_class = "passive",
passive = true,
hp_min = 8,
hp_max = 8,
initial_properties = {
hp_min = 8,
hp_max = 8,
},
xp_min = 1,
xp_max = 3,
collisionbox = {-0.45, -0.01, -0.45, 0.45, 1.29, 0.45},

View File

@ -39,8 +39,10 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
arrow = "mobs_mc:shulkerbullet",
shoot_offset = 0.5,
passive = false,
hp_min = 30,
hp_max = 30,
initial_properties = {
hp_min = 30,
hp_max = 30,
},
xp_min = 5,
xp_max = 5,
armor = 20,

View File

@ -15,8 +15,10 @@ mcl_mobs.register_mob("mobs_mc:silverfish", {
passive = false,
group_attack = true,
reach = 1,
hp_min = 8,
hp_max = 8,
initial_properties = {
hp_min = 8,
hp_max = 8,
},
xp_min = 5,
xp_max = 5,
armor = {fleshy = 100, arthropod = 100},

View File

@ -16,8 +16,10 @@ local skeleton = {
description = S("Skeleton"),
type = "monster",
spawn_class = "hostile",
hp_min = 20,
hp_max = 20,
initial_properties = {
hp_min = 20,
hp_max = 20,
},
xp_min = 6,
xp_max = 6,
breath_max = -1,

View File

@ -13,8 +13,10 @@ mcl_mobs.register_mob("mobs_mc:witherskeleton", {
description = S("Wither Skeleton"),
type = "monster",
spawn_class = "hostile",
hp_min = 20,
hp_max = 20,
initial_properties = {
hp_min = 20,
hp_max = 20,
},
xp_min = 6,
xp_max = 6,
breath_max = -1,

View File

@ -179,8 +179,10 @@ local slime_big = {
type = "monster",
spawn_class = "hostile",
group_attack = { "mobs_mc:slime_big", "mobs_mc:slime_small", "mobs_mc:slime_tiny" },
hp_min = 16,
hp_max = 16,
initial_properties = {
hp_min = 16,
hp_max = 16,
},
xp_min = 4,
xp_max = 4,
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02, rotate = true},

View File

@ -25,8 +25,10 @@ mcl_mobs.register_mob("mobs_mc:snowman", {
type = "npc",
spawn_class = "passive",
passive = true,
hp_min = 4,
hp_max = 4,
initial_properties = {
hp_min = 4,
hp_max = 4,
},
pathfinding = 1,
view_range = 10,
fall_damage = 0,

View File

@ -39,8 +39,10 @@ local spider = {
pathfinding = 1,
damage = 2,
reach = 2,
hp_min = 16,
hp_max = 16,
initial_properties = {
hp_min = 16,
hp_max = 16,
},
xp_min = 5,
xp_max = 5,
armor = {fleshy = 100, arthropod = 100},

View File

@ -12,8 +12,10 @@ mcl_mobs.register_mob("mobs_mc:squid", {
spawn_class = "water",
can_despawn = true,
passive = true,
hp_min = 10,
hp_max = 10,
initial_properties = {
hp_min = 10,
hp_max = 10,
},
xp_min = 1,
xp_max = 3,
armor = 100,

View File

@ -14,8 +14,10 @@ local strider = {
type = "animal",
passive = true,
spawn_class = "passive",
hp_min = 20,
hp_max = 20,
initial_properties = {
hp_min = 20,
hp_max = 20,
},
xp_min = 9,
xp_max = 9,
armor = {fleshy = 90},

View File

@ -62,8 +62,10 @@ local tropical_fish = {
spawn_class = "water_ambient",
can_despawn = true,
passive = true,
hp_min = 3,
hp_max = 3,
initial_properties = {
hp_min = 3,
hp_max = 3,
},
xp_min = 1,
xp_max = 3,
armor = 100,

View File

@ -17,8 +17,10 @@ mcl_mobs.register_mob("mobs_mc:vex", {
passive = false,
attack_type = "dogfight",
physical = false,
hp_min = 14,
hp_max = 14,
initial_properties = {
hp_min = 14,
hp_max = 14,
},
xp_min = 6,
xp_max = 6,
collisionbox = {-0.2, 0.2, -0.2, 0.2, 1.0, 0.2}, --bat

View File

@ -2087,8 +2087,10 @@ mcl_mobs.register_mob("mobs_mc:villager", {
type = "npc",
spawn_class = "passive",
passive = true,
hp_min = 20,
hp_max = 20,
initial_properties = {
hp_min = 20,
hp_max = 20,
},
head_swivel = "head.control",
bone_eye_height = 6.3,
head_eye_height = 2.2,

View File

@ -20,8 +20,10 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
can_despawn = false,
physical = true,
pathfinding = 1,
hp_min = 24,
hp_max = 24,
initial_properties = {
hp_min = 24,
hp_max = 24,
},
xp_min = 10,
xp_max = 10,
head_swivel = "head.control",

View File

@ -21,8 +21,10 @@ mcl_mobs.register_mob("mobs_mc:illusioner", {
mcl_bows.shoot_arrow("mcl_bows:arrow", pos, dir, self.object:get_yaw(), self.object, nil, dmg)
end
end,
hp_min = 32,
hp_max = 32,
initial_properties = {
hp_min = 32,
hp_max = 32,
},
xp_min = 6,
xp_max = 6,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},

View File

@ -16,8 +16,10 @@ mcl_mobs.register_mob("mobs_mc:vindicator", {
spawn_class = "hostile",
physical = false,
pathfinding = 1,
hp_min = 24,
hp_max = 24,
initial_properties = {
hp_min = 24,
hp_max = 24
},
xp_min = 6,
xp_max = 6,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},

View File

@ -30,8 +30,10 @@ mcl_mobs.register_mob("mobs_mc:villager_zombie", {
type = "monster",
spawn_class = "hostile",
spawn_in_group = 1,
hp_min = 20,
hp_max = 20,
initial_properties = {
hp_min = 20,
hp_max = 20,
},
xp_min = 5,
xp_max = 5,
breath_max = -1,

View File

@ -17,8 +17,10 @@ mcl_mobs.register_mob("mobs_mc:witch", {
type = "monster",
spawn_class = "hostile",
can_despawn = false,
hp_min = 26,
hp_max = 26,
initial_properties = {
hp_min = 26,
hp_max = 26,
},
xp_min = 5,
xp_max = 5,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},

View File

@ -71,8 +71,10 @@ mcl_mobs.register_mob("mobs_mc:wither", {
description = S("Wither"),
type = "monster",
spawn_class = "hostile",
hp_max = 300,
hp_min = 300,
initial_properties = {
hp_max = 300,
hp_min = 300,
},
xp_min = 50,
xp_max = 50,
armor = {undead = 80, fleshy = 100},
@ -574,4 +576,3 @@ mcl_mobs.register_egg("mobs_mc:wither", S("Wither"), "#4f4f4f", "#4f4f4f", 0, tr
mcl_wip.register_wip_item("mobs_mc:wither")
mcl_mobs:non_spawn_specific("mobs_mc:wither","overworld",0,minetest.LIGHT_MAX+1)

View File

@ -12,8 +12,10 @@ local wolf = {
type = "animal",
spawn_class = "passive",
can_despawn = true,
hp_min = 8,
hp_max = 8,
initial_properties = {
hp_min = 8,
hp_max = 8,
},
xp_min = 1,
xp_max = 3,
passive = false,

View File

@ -49,8 +49,10 @@ local zombie = {
description = S("Zombie"),
type = "monster",
spawn_class = "hostile",
hp_min = 20,
hp_max = 20,
initial_properties = {
hp_min = 20,
hp_max = 20,
},
xp_min = 5,
xp_max = 5,
head_swivel = "head.control",

View File

@ -338,8 +338,10 @@ minetest.register_node("mcl_mobspawners:spawner", {
-- Mob spawner doll (rotating icon inside cage)
local doll_def = {
hp_max = 1,
physical = false,
initial_properties = {
hp_max = 1,
physical = false,
},
pointable = false,
visual = "mesh",
makes_footstep_sound = false,