spawners/spawners_mobs/mob_bunny_evil.lua

70 lines
1.5 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,
reach = 3,
2016-10-20 16:23:32 -07:00
damage = 3,
2018-01-10 12:30:32 -08:00
hp_min = 35,
hp_max = 65,
armor = 100,
2016-10-16 03:21:53 -07:00
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,
2018-10-17 21:25:23 -07:00
view_range = 10,
2016-10-16 03:21:53 -07:00
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
},
2018-01-10 12:30:32 -08:00
water_damage = 5,
lava_damage = 10,
2016-11-21 14:32:49 -08:00
light_damage = 10,
2018-01-10 12:30:32 -08:00
fear_height = 3,
2016-10-16 03:21:53 -07:00
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"},
2018-01-10 12:30:32 -08:00
-- on_rightclick = function(self, clicker)
2016-12-03 10:29:27 -08:00
2018-01-10 12:30:32 -08:00
-- if mobs:feed_tame(self, clicker, 3, true, true) then
-- return
-- end
2016-12-03 10:29:27 -08:00
2018-01-10 12:30:32 -08:00
-- 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"},
chance = 7000,
2018-01-10 12:30:32 -08:00
min_light = 0,
max_light = 14,
2018-01-12 22:05:14 -08:00
active_object_count = 1,
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)