Improve flight behavior of bat/parrot a little

This commit is contained in:
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,
]]
},
walk_chance = 100,
fall_damage = 0,
view_range = 16,
fear_height = 0,
jump = false,
fly = true,
})

View File

@ -35,25 +35,26 @@ mobs:register_mob("mobs_mc:parrot", {
animation = {
stand_speed = 50,
walk_speed = 50,
stand_start = 0,
stand_end = 0,
walk_start = 0,
walk_end = 130,
--run_start = 0,
--run_end = 20,
--fly_start = 30,
--fly_end = 45,
fly_speed = 50,
stand_start = 30,
stand_end = 45,
fly_start = 30,
fly_end = 45,
walk_start = 30,
walk_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_speed = -2.25,
attack_type = "dogfight",
jump = true,
jump_height = 4,
floats = 1,
physical = true,
fly = true,
fear_height = 4,
fear_height = 0,
view_range = 16,
follow = mobs_mc.follow.parrot,
on_rightclick = function(self, clicker)