penguin/init.lua

60 lines
1.4 KiB
Lua
Raw Normal View History

2016-12-14 08:12:59 -08:00
if mobs.mod and mobs.mod == "redo" then
mobs:register_mob("penguin:penguin", {
type = "animal",
passive = false,
attack_type = "dogfight",
2016-12-16 06:43:33 -08:00
reach = 1,
2016-12-14 08:12:59 -08:00
damage = 2,
2016-12-14 11:49:04 -08:00
hp_min = 5,
hp_max = 15,
armor = 200,
collisionbox = {-0.25, -0.4, -0.25, 0.25, 0.3, 0.25},
2016-12-14 08:12:59 -08:00
visual = "mesh",
mesh = "mobs_penguin.b3d",
drawtype = "front",
textures = {
{"mobs_penguin.png"},
2016-12-14 11:55:23 -08:00
{"mobs_penguin_tux.png"},
2016-12-14 08:12:59 -08:00
},
blood_texture = "mobs_blood.png",
visual_size = {x=8,y=8},
makes_footstep_sound = true,
2016-12-14 11:49:04 -08:00
sounds = {
random = "penguin_chirrup",
},
2016-12-14 08:12:59 -08:00
-- speed and jump
walk_velocity = 1,
run_velocity = 2,
jump = true,
2016-12-14 11:49:04 -08:00
jump_height = 1,
2016-12-14 08:12:59 -08:00
stepheight = 1.1,
2016-12-14 11:49:04 -08:00
floats = 1,
2016-12-14 08:12:59 -08:00
-- drops raw meat when dead
drops = {
{name = "mobs:meat_raw",
chance = 1, min = 1, max = 4},
},
-- damaged by
water_damage = 1,
lava_damage = 5,
light_damage = 0,
-- model animation
animation = {
2016-12-16 06:43:33 -08:00
speed_normal = 15, speed_run = 15,
2016-12-14 08:12:59 -08:00
stand_start = 0, stand_end = 60, -- head down/up
walk_start = 150, walk_end = 170, -- walk
run_start = 150, run_end = 170, -- walk
punch_start = 70, punch_end = 140, -- attack
},
follow = "farming:wheat", view_range = 7,
replace_rate = 50,
replace_what = {"group:flora"},
replace_with = "air",
})
mobs:register_spawn("penguin:penguin", {"default:dirt_with_snow", "default:snowblock"}, 20, 0, 20000, 1, 31000)
mobs:register_egg("penguin:penguin", "Penguin", "default_grass.png", 1)
end