penguin.lua 1.7 KB

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