spawners/spawners_mobs/mob_bunny_evil.lua

70 lines
1.4 KiB
Lua
Raw Normal View History

2016-10-16 03:21:53 -07:00
-- Evil Bunny by ExeterDad
local bunny_evil_def = {
type = "monster",
passive = false,
attack_type = "dogfight",
group_attack = true,
2018-01-06 20:31:21 -08:00
pathfinding = false,
2016-10-16 03:21:53 -07:00
reach = 2,
2016-10-20 16:23:32 -07:00
damage = 3,
2016-10-16 03:21:53 -07:00
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,
2016-12-03 14:14:15 -08:00
floats = 1,
2016-10-16 03:21:53 -07:00
drops = {
2016-11-30 14:52:51 -08:00
{name = "mobs:meat_raw", chance = 5, min = 1, max = 1},
2016-10-16 03:21:53 -07:00
},
water_damage = 3,
lava_damage = 4,
2016-11-21 14:32:49 -08:00
light_damage = 10,
2016-10-16 03:21:53 -07:00
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,
2016-12-03 10:29:27 -08:00
},
2017-07-29 07:41:47 -07:00
-- follow = {"mobs:lava_orb"},
2016-12-03 10:29:27 -08:00
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,
2016-10-16 03:21:53 -07:00
}
mobs:register_mob("spawners_mobs:bunny_evil", bunny_evil_def)
2016-12-05 09:09:12 -08:00
mobs:spawn({
name = "spawners_mobs:bunny_evil",
2018-01-03 11:56:09 -08:00
nodes = {"default:snowblock", "default:dirt_with_snow", "default:ice"},
2016-12-05 09:09:12 -08:00
min_light = 0,
max_light = 20,
2018-01-03 11:56:09 -08:00
chance = 7000,
active_object_count = 3,
2016-12-05 09:09:12 -08:00
day_toggle = false,
})
2016-10-16 03:21:53 -07:00
2016-11-30 14:32:15 -08:00
mobs:register_egg("spawners_mobs:bunny_evil", "Evil Bunny", "spawners_mobs_evil_bunny_egg.png", 0)