1
0
Fork 0

Improve flight behavior of bat/parrot a little

objects
Wuzzy 2020-12-05 03:21:39 +01:00
parent 9b519cb665
commit ab7cfa1e43
2 changed files with 16 additions and 13 deletions

View File

@ -40,10 +40,12 @@ mobs:register_mob("mobs_mc:bat", {
die_loop = false, die_loop = false,
]] ]]
}, },
walk_chance = 100,
fall_damage = 0, fall_damage = 0,
view_range = 16, view_range = 16,
fear_height = 0,
jump = false,
fly = true, fly = true,
}) })

View File

@ -35,25 +35,26 @@ mobs:register_mob("mobs_mc:parrot", {
animation = { animation = {
stand_speed = 50, stand_speed = 50,
walk_speed = 50, walk_speed = 50,
stand_start = 0, fly_speed = 50,
stand_end = 0, stand_start = 30,
walk_start = 0, stand_end = 45,
walk_end = 130, fly_start = 30,
--run_start = 0, fly_end = 45,
--run_end = 20, walk_start = 30,
--fly_start = 30, walk_end = 45,
--fly_end = 45, -- TODO: actual walk animation
--walk_start = 0,
--walk_end = 20,
-- TODO: more unused animations between 45 and 130
}, },
walk_chance = 100,
fall_damage = 0, fall_damage = 0,
fall_speed = -2.25, fall_speed = -2.25,
attack_type = "dogfight", attack_type = "dogfight",
jump = true,
jump_height = 4,
floats = 1, floats = 1,
physical = true, physical = true,
fly = true, fly = true,
fear_height = 4, fear_height = 0,
view_range = 16, view_range = 16,
follow = mobs_mc.follow.parrot, follow = mobs_mc.follow.parrot,
on_rightclick = function(self, clicker) on_rightclick = function(self, clicker)