77 lines
1.6 KiB
Lua
77 lines
1.6 KiB
Lua
local S = minetest.get_translator("mobs_hades")
|
|
|
|
-- Mutant
|
|
|
|
mobs:register_mob("mobs_hades:mutant", {
|
|
type = "monster",
|
|
hp_min = 15,
|
|
hp_max = 20,
|
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
|
visual = "mesh",
|
|
mesh = "mobs_sand_monster.x",
|
|
textures = {
|
|
{"mobs_sand_monster.png"},
|
|
{"mobs_sand_monster2.png"},
|
|
{"mobs_sand_monster3.png"},
|
|
},
|
|
visual_size = {x=8,y=8},
|
|
makes_footstep_sound = true,
|
|
sounds = {
|
|
random = {name="mobs_hades_mutant_growl", gain=0.1},
|
|
damage = {name="mobs_hades_mutant_hurt", gain=0.1},
|
|
death = {name="mobs_hades_mutant_death", gain=0.2},
|
|
},
|
|
view_range = 10,
|
|
walk_velocity = 1.5,
|
|
run_velocity = 4,
|
|
damage = 1,
|
|
drops = {
|
|
{name = "hades_core:ash",
|
|
chance = 2,
|
|
min = 3,
|
|
max = 5,},
|
|
{name = "hades_core:iron_lump",
|
|
chance=9,
|
|
min=1,
|
|
max=2,},
|
|
{name = "hades_core:pick_wood",
|
|
chance=3,
|
|
min=1,
|
|
max=1,},
|
|
{name = "hades_core:shovel_wood",
|
|
chance=8,
|
|
min=1,
|
|
max=1,},
|
|
{name = "hades_trees:apple",
|
|
chance=4,
|
|
min=1,
|
|
max=2,},
|
|
},
|
|
armor = 100,
|
|
drawtype = "front",
|
|
water_damage = 3,
|
|
lava_damage = 1,
|
|
light_damage = 0,
|
|
attack_type = "dogfight",
|
|
animation = {
|
|
speed_normal = 15,
|
|
speed_run = 15,
|
|
stand_start = 0,
|
|
stand_end = 39,
|
|
walk_start = 41,
|
|
walk_end = 72,
|
|
run_start = 74,
|
|
run_end = 105,
|
|
punch_start = 74,
|
|
punch_end = 105,
|
|
},
|
|
jump = true,
|
|
step = 0.5,
|
|
blood_texture = "mobs_blood.png",
|
|
floats = 1,
|
|
})
|
|
mobs:register_spawn("mobs_hades:mutant", {"hades_core:ash"}, minetest.LIGHT_MAX, 0, 16000, 1, 31000)
|
|
mobs:register_spawn("mobs_hades:mutant", {"hades_core:ash"}, 5, 0, 6000, 3, 31000)
|
|
|
|
mobs:register_egg("mobs_hades:mutant", S("Mutant Spawn Egg"), "hades_core_ash.png", 1, false)
|