penguin.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. mobs:register_mob("arctic_life:penguin", {
  2. type = "animal",
  3. passive = false,
  4. attack_type = "dogfight",
  5. group_attack = true,
  6. reach = 1,
  7. damage = 1,
  8. hp_min = 5,
  9. hp_max = 15,
  10. armor = 200,
  11. fly_in = "default:water_source",
  12. collisionbox = {-0.25, -0.4, -0.25, 0.25, 0.3, 0.25},
  13. visual = "mesh",
  14. mesh = "arctic_life_penguin.b3d",
  15. drawtype = "front",
  16. textures = {
  17. {"arctic_life_penguin.png"},
  18. {"arctic_life_penguin_tux.png"},
  19. },
  20. blood_texture = "mobs_blood.png",
  21. visual_size = {x=8,y=8},
  22. makes_footstep_sound = true,
  23. sounds = {
  24. random = "penguin_chirrup",
  25. },
  26. -- speed and jump
  27. walk_velocity = 1,
  28. run_velocity = 2,
  29. jump = true,
  30. jump_height = 1,
  31. stepheight = 1.1,
  32. floats = 0,
  33. -- drops raw meat when dead
  34. drops = {
  35. {name = "mobs:meat_raw", chance = 1, min = 1, max = 4},
  36. {name = 'bonemeal:bone', chance = 2, min = 1, max = 2},
  37. },
  38. -- damaged by
  39. water_damage = 0,
  40. lava_damage = 5,
  41. light_damage = 0,
  42. -- model animation
  43. animation = {
  44. speed_normal = 15, speed_run = 15,
  45. stand_start = 0, stand_end = 60, -- head down/up
  46. walk_start = 150, walk_end = 170, -- walk
  47. run_start = 150, run_end = 170, -- walk
  48. punch_start = 70, punch_end = 140, -- attack
  49. fly_start = 171, fly_end = 201, -- swimming
  50. },
  51. follow = "fishing:fish_raw", view_range = 7,
  52. replace_rate = 50,
  53. replace_what = {"group:flora"},
  54. replace_with = "air",
  55. })
  56. mobs:register_spawn("arctic_life:penguin", {"default:dirt_with_snow", "default:snowblock"}, 20, 0, 20000, 1, 600)
  57. mobs:register_egg("arctic_life:penguin", "Penguin", "default_grass.png", 1)