forked from VoxeLibre/VoxeLibre
mobs:animations:align animation to movement speed
change walk speed of evoker
This commit is contained in:
parent
a344755894
commit
6bdf619438
|
@ -65,13 +65,13 @@ mcl_mobs.register_mob("mobs_mc:chicken", {
|
|||
},
|
||||
animation = {
|
||||
stand_start = 0, stand_end = 0,
|
||||
walk_start = 0, walk_end = 20, walk_speed = 25,
|
||||
run_start = 0, run_end = 20, run_speed = 50,
|
||||
walk_start = 0, walk_end = 20, walk_speed = 100,
|
||||
run_start = 0, run_end = 20, run_speed = 200,
|
||||
},
|
||||
child_animations = {
|
||||
stand_start = 31, stand_end = 31,
|
||||
walk_start = 31, walk_end = 51, walk_speed = 37,
|
||||
run_start = 31, run_end = 51, run_speed = 75,
|
||||
walk_start = 31, walk_end = 51, walk_speed = 100,
|
||||
run_start = 31, run_end = 51, run_speed = 200,
|
||||
},
|
||||
follow = {
|
||||
"mcl_farming:wheat_seeds",
|
||||
|
|
|
@ -50,13 +50,13 @@ local cow_def = {
|
|||
},
|
||||
animation = {
|
||||
stand_start = 0, stand_end = 0,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 30,
|
||||
run_start = 0, run_end = 40, run_speed = 40,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 100,
|
||||
run_start = 0, run_end = 40, run_speed = 200,
|
||||
},
|
||||
child_animations = {
|
||||
stand_start = 41, stand_end = 41,
|
||||
walk_start = 41, walk_end = 81, walk_speed = 45,
|
||||
run_start = 41, run_end = 81, run_speed = 60,
|
||||
walk_start = 41, walk_end = 81, walk_speed = 100,
|
||||
run_start = 41, run_end = 81, run_speed = 200,
|
||||
},
|
||||
on_rightclick = function(self, clicker)
|
||||
if self:feed_tame(clicker, 1, true, false) then return end
|
||||
|
|
|
@ -80,7 +80,7 @@ mcl_mobs.register_mob("mobs_mc:iron_golem", {
|
|||
},
|
||||
fall_damage = 0,
|
||||
animation = {
|
||||
stand_speed = 15, walk_speed = 15, run_speed = 25, punch_speed = 15,
|
||||
stand_speed = 15, walk_speed = 50, run_speed = 100, punch_speed = 15,
|
||||
stand_start = 0, stand_end = 0,
|
||||
walk_start = 0, walk_end = 40,
|
||||
run_start = 0, run_end = 40,
|
||||
|
|
|
@ -102,13 +102,13 @@ mcl_mobs.register_mob("mobs_mc:llama", {
|
|||
},
|
||||
animation = {
|
||||
stand_start = 0, stand_end = 0,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 35,
|
||||
run_start = 0, run_end = 40, run_speed = 50,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 100,
|
||||
run_start = 0, run_end = 40, run_speed = 200,
|
||||
},
|
||||
child_animations = {
|
||||
stand_start = 41, stand_end = 41,
|
||||
walk_start = 41, walk_end = 81, walk_speed = 50,
|
||||
run_start = 41, run_end = 81, run_speed = 75,
|
||||
walk_start = 41, walk_end = 81, walk_speed = 200,
|
||||
run_start = 41, run_end = 81, run_speed = 400,
|
||||
},
|
||||
follow = { "mcl_farming:wheat_item", "mcl_farming:hay_block" },
|
||||
view_range = 16,
|
||||
|
|
|
@ -63,14 +63,14 @@ local ocelot = {
|
|||
},
|
||||
animation = {
|
||||
stand_start = 0, stand_end = 0,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 40,
|
||||
run_start = 0, run_end = 40, run_speed = 50,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 100,
|
||||
run_start = 0, run_end = 40, run_speed = 200,
|
||||
sit_start = 50, sit_end = 50,
|
||||
},
|
||||
child_animations = {
|
||||
stand_start = 51, stand_end = 51,
|
||||
walk_start = 51, walk_end = 91, walk_speed = 60,
|
||||
run_start = 51, run_end = 91, run_speed = 75,
|
||||
walk_start = 51, walk_end = 91, walk_speed = 200,
|
||||
run_start = 51, run_end = 91, run_speed = 400,
|
||||
sit_start = 101, sit_end = 101,
|
||||
},
|
||||
follow = follow,
|
||||
|
|
|
@ -166,8 +166,8 @@ mcl_mobs.register_mob("mobs_mc:parrot", {
|
|||
fly_speed = 50,
|
||||
stand_start = 0,
|
||||
stand_end = 0,
|
||||
fly_start = 30,
|
||||
fly_end = 45,
|
||||
fly_start = 130,
|
||||
fly_end = 150,
|
||||
walk_start = 0,
|
||||
walk_end = 20,
|
||||
-- TODO: actual walk animation
|
||||
|
|
|
@ -82,8 +82,8 @@ pillager = {
|
|||
unloaded_stand_start = 41, unloaded_stand_end = 60,
|
||||
reload_stand_start = 61, reload_stand_end = 100, reload_stand_speed = 20,
|
||||
stand_start = 101, stand_end = 109, stand_speed = 6,
|
||||
walk_start = 111, walk_end = 150, walk_speed = 30,
|
||||
run_start = 111, run_end = 150, run_speed = 50,
|
||||
walk_start = 111, walk_end = 150, walk_speed = 200,
|
||||
run_start = 111, run_end = 150, run_speed = 400,
|
||||
reload_run_start = 151, reload_run_end = 190, reload_run_speed = 20,
|
||||
die_start = 191, die_end = 192, die_speed = 15,
|
||||
stand_unloaded_start = 40, stand_unloaded_end = 59,
|
||||
|
@ -122,4 +122,4 @@ pillager = {
|
|||
|
||||
mcl_mobs.register_mob("mobs_mc:pillager", pillager)
|
||||
mcl_mobs.register_egg("mobs_mc:pillager", S("Pillager"), "#532f36", "#959b9b", 0)
|
||||
mcl_mobs:non_spawn_specific("mobs_mc:pillager","overworld",0,7)
|
||||
mcl_mobs:non_spawn_specific("mobs_mc:pillager","overworld",0,7)
|
||||
|
|
|
@ -64,10 +64,10 @@ mcl_mobs.register_mob("mobs_mc:polar_bear", {
|
|||
distance = 16,
|
||||
},
|
||||
animation = {
|
||||
speed_normal = 25, speed_run = 50,
|
||||
speed_normal = 25,
|
||||
stand_start = 0, stand_end = 0,
|
||||
walk_start = 0, walk_end = 40,
|
||||
run_start = 0, run_end = 40,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 100,
|
||||
run_start = 0, run_end = 40, run_speed = 200,
|
||||
},
|
||||
|
||||
view_range = 16,
|
||||
|
|
|
@ -54,13 +54,13 @@ local rabbit = {
|
|||
fear_height = 4,
|
||||
animation = {
|
||||
stand_start = 0, stand_end = 0,
|
||||
walk_start = 0, walk_end = 20, walk_speed = 20,
|
||||
run_start = 0, run_end = 20, run_speed = 30,
|
||||
walk_start = 0, walk_end = 20, walk_speed = 100,
|
||||
run_start = 0, run_end = 20, run_speed = 200,
|
||||
},
|
||||
child_animations = {
|
||||
stand_start = 21, stand_end = 21,
|
||||
walk_start = 21, walk_end = 41, walk_speed = 30,
|
||||
run_start = 21, run_end = 41, run_speed = 45,
|
||||
walk_start = 21, walk_end = 41, walk_speed = 200,
|
||||
run_start = 21, run_end = 41, run_speed = 400,
|
||||
},
|
||||
-- Follow (yellow) dangelions, carrots and golden carrots
|
||||
follow = {
|
||||
|
|
|
@ -101,14 +101,14 @@ mcl_mobs.register_mob("mobs_mc:sheep", {
|
|||
},
|
||||
animation = {
|
||||
stand_start = 0, stand_end = 0,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 30,
|
||||
run_start = 0, run_end = 40, run_speed = 40,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 80,
|
||||
run_start = 0, run_end = 40, run_speed = 160,
|
||||
eat_start = 40, eat_end = 80, eat_loop = false,
|
||||
},
|
||||
child_animations = {
|
||||
stand_start = 81, stand_end = 81,
|
||||
walk_start = 81, walk_end = 121, walk_speed = 45,
|
||||
run_start = 81, run_end = 121, run_speed = 60,
|
||||
walk_start = 81, walk_end = 121, walk_speed = 160,
|
||||
run_start = 81, run_end = 121, run_speed = 320,
|
||||
eat_start = 121, eat_start = 161, eat_loop = false,
|
||||
},
|
||||
follow = { "mcl_farming:wheat_item" },
|
||||
|
|
|
@ -71,10 +71,10 @@ mcl_mobs.register_mob("mobs_mc:witherskeleton", {
|
|||
stand_speed = 15,
|
||||
walk_start = 40,
|
||||
walk_end = 60,
|
||||
walk_speed = 15,
|
||||
walk_speed = 45,
|
||||
run_start = 40,
|
||||
run_end = 60,
|
||||
run_speed = 30,
|
||||
run_speed = 90,
|
||||
shoot_start = 70,
|
||||
shoot_end = 90,
|
||||
punch_start = 110,
|
||||
|
|
|
@ -44,8 +44,8 @@ local strider = {
|
|||
},
|
||||
animation = {
|
||||
stand_speed = 15,
|
||||
walk_speed = 15,
|
||||
run_speed = 30,
|
||||
walk_speed = 30,
|
||||
run_speed = 60,
|
||||
stand_start = 5,
|
||||
stand_end = 5,
|
||||
walk_start = 1,
|
||||
|
|
|
@ -38,7 +38,7 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
|
|||
} },
|
||||
makes_footstep_sound = true,
|
||||
damage = 6,
|
||||
walk_velocity = 0.2,
|
||||
walk_velocity = 1.0,
|
||||
run_velocity = 1.4,
|
||||
group_attack = true,
|
||||
attack_type = "dogfight",
|
||||
|
@ -80,8 +80,8 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
|
|||
-- TODO: sounds
|
||||
animation = {
|
||||
stand_start = 0, stand_end = 0,
|
||||
walk_start = 0, walk_end = 40, walk_speed = 6,
|
||||
run_start = 0, run_end = 40, run_speed = 24,
|
||||
walk_start = 0, walk_end = 40, walk_speed =100,
|
||||
run_start = 0, run_end = 40, run_speed = 140,
|
||||
shoot_start = 142, shoot_end = 152, -- Magic arm swinging
|
||||
},
|
||||
view_range = 16,
|
||||
|
|
|
@ -49,10 +49,10 @@ mcl_mobs.register_mob("mobs_mc:illusioner", {
|
|||
stand_speed = 25,
|
||||
stand_start = 40,
|
||||
stand_end = 59,
|
||||
walk_speed = 25,
|
||||
walk_speed = 100,
|
||||
walk_start = 0,
|
||||
walk_end = 40,
|
||||
run_speed = 25,
|
||||
run_speed = 200,
|
||||
shoot_start = 150,
|
||||
shoot_end = 170,
|
||||
die_speed = 15,
|
||||
|
|
|
@ -60,10 +60,10 @@ mcl_mobs.register_mob("mobs_mc:vindicator", {
|
|||
stand_speed = 25,
|
||||
stand_start = 40,
|
||||
stand_end = 59,
|
||||
walk_speed = 25,
|
||||
walk_speed = 100,
|
||||
walk_start = 0,
|
||||
walk_end = 40,
|
||||
run_speed = 25,
|
||||
run_speed = 200,
|
||||
punch_speed = 25,
|
||||
punch_start = 90,
|
||||
punch_end = 110,
|
||||
|
|
Loading…
Reference in New Issue