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,
2018-01-07 07:31:21 +03:00
pathfinding = false,
2016-10-16 13:21:53 +03:00
reach = 2,
2016-10-21 02:23:32 +03:00
damage = 3,
2018-01-10 23:30:32 +03:00
hp_min = 35,
hp_max = 65,
armor = 100,
2016-10-16 13:21:53 +03: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-18 07:25:23 +03:00
view_range = 10,
2016-10-16 13:21:53 +03:00
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
},
2018-01-10 23:30:32 +03:00
water_damage = 5,
lava_damage = 10,
2016-11-22 01:32:49 +03:00
light_damage = 10,
2018-01-10 23:30:32 +03:00
fear_height = 3,
2016-10-16 13:21:53 +03: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 21:29:27 +03:00
},
2017-07-29 17:41:47 +03:00
-- follow = {"mobs:lava_orb"},
2018-01-10 23:30:32 +03:00
-- on_rightclick = function(self, clicker)
2016-12-03 21:29:27 +03:00
2018-01-10 23:30:32 +03:00
-- if mobs:feed_tame(self, clicker, 3, true, true) then
-- return
-- end
2016-12-03 21:29:27 +03:00
2018-01-10 23:30:32 +03:00
-- 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",
2018-01-03 22:56:09 +03:00
nodes = {"default:snowblock", "default:dirt_with_snow", "default:ice"},
chance = 7000,
2018-01-10 23:30:32 +03:00
min_light = 0,
max_light = 14,
2018-01-13 09:05:14 +03:00
active_object_count = 1,
2016-12-05 20:09:12 +03:00
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)