2016-12-18 13:47:18 -08:00
|
|
|
mobs:register_mob("arctic_life:walrus", {
|
2016-12-18 13:42:25 -08:00
|
|
|
type = "animal",
|
|
|
|
passive = false,
|
|
|
|
attack_type = "dogfight",
|
|
|
|
reach = 1,
|
|
|
|
damage = 5,
|
2016-12-20 09:51:03 -08:00
|
|
|
hp_min = 15,
|
|
|
|
hp_max = 45,
|
2016-12-18 13:42:25 -08:00
|
|
|
armor = 200,
|
2016-12-20 09:51:03 -08:00
|
|
|
collisionbox = {-0.35, -0.5, -0.35, 0.35, 0.4, 0.35},
|
2016-12-18 13:42:25 -08:00
|
|
|
visual = "mesh",
|
2018-03-18 10:23:14 -07:00
|
|
|
mesh = "arctic_life_walrus.b3d",
|
2016-12-18 13:42:25 -08:00
|
|
|
drawtype = "front",
|
|
|
|
textures = {
|
2018-03-18 10:23:14 -07:00
|
|
|
{"arctic_life_walrus1.png"},
|
|
|
|
{"arctic_life_walrus2.png"},
|
2016-12-18 13:42:25 -08:00
|
|
|
},
|
|
|
|
blood_texture = "mobs_blood.png",
|
2016-12-20 09:51:03 -08:00
|
|
|
visual_size = {x=10,y=10},
|
2016-12-18 13:42:25 -08:00
|
|
|
makes_footstep_sound = false,
|
2016-12-20 09:51:03 -08:00
|
|
|
sounds = {
|
|
|
|
random = "walrus_random.ogg",
|
|
|
|
war_cry = 'walrus_war_cry.ogg',
|
|
|
|
attack = 'walrus_attack.ogg'
|
|
|
|
},
|
2016-12-18 13:42:25 -08:00
|
|
|
-- speed and jump
|
|
|
|
walk_velocity = 1,
|
|
|
|
run_velocity = 2,
|
|
|
|
jump = true,
|
|
|
|
jump_height = 1,
|
|
|
|
stepheight = 1.1,
|
|
|
|
floats = 1,
|
|
|
|
-- drops raw meat when dead
|
|
|
|
drops = {
|
|
|
|
{name = "mobs:meat_raw",
|
|
|
|
chance = 1, min = 2, max = 5},
|
|
|
|
},
|
|
|
|
-- damaged by
|
|
|
|
water_damage = 1,
|
|
|
|
lava_damage = 5,
|
|
|
|
light_damage = 0,
|
|
|
|
-- model animation
|
|
|
|
animation = {
|
|
|
|
speed_normal = 15, speed_run = 15,
|
|
|
|
stand_start = 0, stand_end = 50, -- head down/up
|
|
|
|
walk_start = 55, walk_end = 95, -- walk
|
|
|
|
run_start = 55, run_end = 95, -- walk
|
|
|
|
punch_start = 100, punch_end = 145, -- attack
|
|
|
|
},
|
|
|
|
follow = "farming:wheat", view_range = 7,
|
|
|
|
replace_rate = 50,
|
|
|
|
replace_what = {"group:flora"},
|
|
|
|
replace_with = "air",
|
|
|
|
})
|
|
|
|
|
2016-12-18 13:47:18 -08:00
|
|
|
mobs:register_spawn("arctic_life:walrus", {"default:dirt_with_snow", "default:snowblock"}, 20, 0, 20000, 1, 31000)
|
|
|
|
mobs:register_egg("arctic_life:walrus", "Walrus", "default_grass.png", 1)
|