spawners/spawners_mobs/mob_bunny_evil.lua

70 lines
1.5 KiB
Lua
Raw Normal View History

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