mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-15 23:51:05 +01:00
Make Zmbs, Husks, Sklys, Strys, and WthrSklys support armor textures.
This commit is contained in:
parent
b04f83ae18
commit
e3d5b8a94c
6 changed files with 83 additions and 71 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -30,13 +30,14 @@ local skeleton = {
|
||||||
"mcl_bows_bow_0.png", -- bow
|
"mcl_bows_bow_0.png", -- bow
|
||||||
"mobs_mc_skeleton.png", -- skeleton
|
"mobs_mc_skeleton.png", -- skeleton
|
||||||
} },
|
} },
|
||||||
visual_size = {x=3, y=3},
|
visual_size = {x=1, y=1},
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
sounds = {
|
textures = {
|
||||||
random = "mobs_mc_skeleton_random",
|
{
|
||||||
death = "mobs_mc_skeleton_death",
|
"mobs_mc_empty.png", -- armor
|
||||||
damage = "mobs_mc_skeleton_hurt",
|
"mobs_mc_skeleton.png", -- texture
|
||||||
distance = 16,
|
"mcl_bows_bow_0.png", -- wielded_item
|
||||||
|
}
|
||||||
},
|
},
|
||||||
walk_velocity = 1.2,
|
walk_velocity = 1.2,
|
||||||
run_velocity = 2.4,
|
run_velocity = 2.4,
|
||||||
|
@ -111,9 +112,9 @@ local stray = table.copy(skeleton)
|
||||||
stray.mesh = "mobs_mc_stray.b3d"
|
stray.mesh = "mobs_mc_stray.b3d"
|
||||||
stray.textures = {
|
stray.textures = {
|
||||||
{
|
{
|
||||||
"mcl_bows_bow_0.png",
|
|
||||||
"mobs_mc_stray.png",
|
|
||||||
"mobs_mc_stray_overlay.png",
|
"mobs_mc_stray_overlay.png",
|
||||||
|
"mobs_mc_stray.png",
|
||||||
|
"mcl_bows_bow_0.png",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
-- TODO: different sound (w/ echo)
|
-- TODO: different sound (w/ echo)
|
||||||
|
|
|
@ -25,11 +25,12 @@ mobs:register_mob("mobs_mc:witherskeleton", {
|
||||||
mesh = "mobs_mc_witherskeleton.b3d",
|
mesh = "mobs_mc_witherskeleton.b3d",
|
||||||
textures = {
|
textures = {
|
||||||
{
|
{
|
||||||
"default_tool_stonesword.png", -- sword
|
"mobs_mc_empty.png", -- armor
|
||||||
"mobs_mc_wither_skeleton.png", -- wither skeleton
|
"mobs_mc_wither_skeleton.png", -- wither skeleton
|
||||||
|
"default_tool_stonesword.png", -- sword
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
visual_size = {x=3.6, y=3.6},
|
visual_size = {x=1.2, y=1.2},
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
sounds = {
|
sounds = {
|
||||||
random = "mobs_mc_skeleton_random",
|
random = "mobs_mc_skeleton_random",
|
||||||
|
|
|
@ -58,7 +58,11 @@ local zombie = {
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_mc_zombie.b3d",
|
mesh = "mobs_mc_zombie.b3d",
|
||||||
textures = {
|
textures = {
|
||||||
{"mobs_mc_zombie.png"},
|
{
|
||||||
|
"mobs_mc_empty.png", -- armor
|
||||||
|
"mobs_mc_zombie.png", -- texture
|
||||||
|
"mobs_mc_empty.png", -- wielded_item
|
||||||
|
}
|
||||||
},
|
},
|
||||||
visual_size = {x=3, y=3},
|
visual_size = {x=3, y=3},
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
|
@ -111,7 +115,13 @@ mobs:register_mob("mobs_mc:baby_zombie", baby_zombie)
|
||||||
-- Husk.
|
-- Husk.
|
||||||
-- Desert variant of the zombie
|
-- Desert variant of the zombie
|
||||||
local husk = table.copy(zombie)
|
local husk = table.copy(zombie)
|
||||||
husk.textures = {{"mobs_mc_husk.png"}}
|
husk.textures = {
|
||||||
|
{
|
||||||
|
"mobs_mc_empty.png", -- armor
|
||||||
|
"mobs_mc_husk.png", -- texture
|
||||||
|
"mobs_mc_empty.png", -- wielded_item
|
||||||
|
}
|
||||||
|
}
|
||||||
husk.ignited_by_sunlight = false
|
husk.ignited_by_sunlight = false
|
||||||
husk.sunlight_damage = 0
|
husk.sunlight_damage = 0
|
||||||
husk.drops = drops_common
|
husk.drops = drops_common
|
||||||
|
|
Loading…
Reference in a new issue