1
0
Fork 0

Update (wither) skeleton mesh and anim (thx 2 22i)

objects
Wuzzy 2018-05-30 17:11:07 +02:00
parent 5d92c04a36
commit 895d06d28a
4 changed files with 20 additions and 29 deletions

View File

@ -63,23 +63,19 @@ local skeleton = {
max = 1,}, max = 1,},
}, },
animation = { animation = {
stand_speed = 15,
stand_start = 0, stand_start = 0,
stand_end = 40, stand_end = 40,
stand_speed = 5, walk_speed = 15,
walk_start = 40, walk_start = 40,
walk_end = 60, walk_end = 60,
walk_speed = 15,
run_start = 40,
run_end = 60,
run_speed = 30, run_speed = 30,
shoot_start = 70, shoot_start = 70,
shoot_end = 90, shoot_end = 90,
punch_start = 70, die_start = 160,
punch_end = 90, die_end = 170,
-- TODO: Implement and fix death animation die_speed = 15,
--die_start = 120, die_loop = false,
--die_end = 130,
--die_loop = false,
}, },
water_damage = 1, water_damage = 1,
lava_damage = 4, lava_damage = 4,

View File

@ -7,15 +7,10 @@
local MP = minetest.get_modpath(minetest.get_current_modname()) local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua") local S, NS = dofile(MP.."/intllib.lua")
--dofile(minetest.get_modpath("mobs").."/api.lua")
--################### --###################
--################### WITHER SKELETON --################### WITHER SKELETON
--################### --###################
mobs:register_mob("mobs_mc:witherskeleton", { mobs:register_mob("mobs_mc:witherskeleton", {
type = "monster", type = "monster",
hp_min = 20, hp_min = 20,
@ -26,7 +21,10 @@ mobs:register_mob("mobs_mc:witherskeleton", {
visual = "mesh", visual = "mesh",
mesh = "mobs_mc_witherskeleton.b3d", mesh = "mobs_mc_witherskeleton.b3d",
textures = { textures = {
{"mobs_mc_wither_skeleton.png^mobs_mc_wither_skeleton_sword.png"}, {
"default_tool_stonesword.png", -- sword
"mobs_mc_wither_skeleton.png", -- wither skeleton
}
}, },
visual_size = {x=3.6, y=3.6}, visual_size = {x=3.6, y=3.6},
makes_footstep_sound = true, makes_footstep_sound = true,
@ -59,7 +57,7 @@ mobs:register_mob("mobs_mc:witherskeleton", {
animation = { animation = {
stand_start = 0, stand_start = 0,
stand_end = 40, stand_end = 40,
stand_speed = 5, stand_speed = 15,
walk_start = 40, walk_start = 40,
walk_end = 60, walk_end = 60,
walk_speed = 15, walk_speed = 15,
@ -68,16 +66,13 @@ mobs:register_mob("mobs_mc:witherskeleton", {
run_speed = 30, run_speed = 30,
shoot_start = 70, shoot_start = 70,
shoot_end = 90, shoot_end = 90,
punch_start = 70, punch_start = 110,
punch_end = 90, punch_end = 130,
-- TODO: Implement and fix death animation punch_speed = 25,
--die_start = 120, die_start = 160,
--die_end = 130, die_end = 170,
--die_loop = false, die_speed = 15,
die_loop = false,
-- Not supported yet
hurt_start = 100,
hurt_end = 120,
}, },
water_damage = 0, water_damage = 0,
lava_damage = 0, lava_damage = 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 B