2017-07-05 04:15:46 +03:00
|
|
|
--###################
|
|
|
|
--################### ENDERMITE
|
|
|
|
--###################
|
|
|
|
|
2019-03-07 21:43:39 +02:00
|
|
|
local S = minetest.get_translator("mobs_mc")
|
2017-07-05 04:15:46 +03:00
|
|
|
|
|
|
|
mobs:register_mob("mobs_mc:endermite", {
|
|
|
|
type = "monster",
|
2020-04-11 03:46:03 +03:00
|
|
|
spawn_class = "hostile",
|
2017-07-05 04:15:46 +03:00
|
|
|
passive = false,
|
|
|
|
hp_min = 8,
|
|
|
|
hp_max = 8,
|
2020-12-06 16:46:42 +02:00
|
|
|
xp_min = 3,
|
|
|
|
xp_max = 3,
|
2017-07-05 04:15:46 +03:00
|
|
|
armor = 100,
|
|
|
|
group_attack = true,
|
|
|
|
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.29, 0.2},
|
|
|
|
visual = "mesh",
|
|
|
|
mesh = "mobs_mc_endermite.b3d",
|
|
|
|
textures = {
|
|
|
|
{"mobs_mc_endermite.png"},
|
|
|
|
},
|
|
|
|
visual_size = {x=3, y=3},
|
|
|
|
makes_footstep_sound = false,
|
|
|
|
sounds = {
|
2020-12-06 22:15:05 +02:00
|
|
|
random = "mobs_mc_endermite_random",
|
|
|
|
damage = "mobs_mc_endermite_hurt",
|
|
|
|
death = "mobs_mc_endermite_death",
|
2018-09-14 17:27:58 +03:00
|
|
|
distance = 16,
|
2017-07-05 04:15:46 +03:00
|
|
|
},
|
|
|
|
walk_velocity = 1,
|
|
|
|
run_velocity = 2,
|
|
|
|
jump = true,
|
|
|
|
fear_height = 4,
|
|
|
|
view_range = 16,
|
|
|
|
damage = 2,
|
2017-07-26 01:26:18 +03:00
|
|
|
reach = 1,
|
2017-07-05 04:15:46 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
mobs:register_egg("mobs_mc:endermite", S("Endermite"), "mobs_mc_spawn_icon_endermite.png", 0)
|