1
0
Fork 0
MineClone2/mods/ENTITIES/mobs_mc/endermite.lua

43 lines
909 B
Lua
Raw Normal View History

2017-07-05 01:15:46 +00:00
--###################
--################### ENDERMITE
--###################
-- intllib
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
mobs:register_mob("mobs_mc:endermite", {
type = "monster",
passive = false,
hp_min = 8,
hp_max = 8,
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 = {
random = "mobs_rat",
distance = 16,
-- TODO: more sounds
2017-07-05 01:15:46 +00:00
},
walk_velocity = 1,
run_velocity = 2,
jump = true,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
fear_height = 4,
view_range = 16,
damage = 2,
2017-07-25 22:26:18 +00:00
reach = 1,
2017-07-05 01:15:46 +00:00
blood_amount = 0,
})
mobs:register_egg("mobs_mc:endermite", S("Endermite"), "mobs_mc_spawn_icon_endermite.png", 0)