spawners/spawners_mobs/mob_bunny_evil.lua
2018-01-03 14:56:09 -05:00

70 lines
1.4 KiB
Lua

-- Evil Bunny by ExeterDad
local bunny_evil_def = {
type = "monster",
passive = false,
attack_type = "dogfight",
group_attack = true,
pathfinding = true,
reach = 2,
damage = 3,
hp_min = 25,
hp_max = 35,
armor = 200,
collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268},
visual = "mesh",
mesh = "spawners_mobs_evil_bunny.b3d",
rotate = 0,
textures = {
{"spawners_mobs_evil_bunny.png"},
},
sounds = {
random = "spawners_mobs_bunny",
},
makes_footstep_sound = false,
walk_velocity = 1.5,
run_velocity = 4,
view_range = 15,
jump = true,
floats = 1,
drops = {
{name = "mobs:meat_raw", chance = 5, min = 1, max = 1},
},
water_damage = 3,
lava_damage = 4,
light_damage = 10,
fear_height = 2,
animation = {
speed_normal = 15,
stand_start = 1,
stand_end = 15,
walk_start = 16,
walk_end = 24,
punch_start = 16,
punch_end = 24,
},
-- follow = {"mobs:lava_orb"},
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 3, true, true) then
return
end
mobs:capture_mob(self, clicker, 30, 50, 80, false, nil)
end,
}
mobs:register_mob("spawners_mobs:bunny_evil", bunny_evil_def)
mobs:spawn({
name = "spawners_mobs:bunny_evil",
nodes = {"default:snowblock", "default:dirt_with_snow", "default:ice"},
min_light = 0,
max_light = 20,
chance = 7000,
active_object_count = 3,
day_toggle = false,
})
mobs:register_egg("spawners_mobs:bunny_evil", "Evil Bunny", "spawners_mobs_evil_bunny_egg.png", 0)