walrus.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. mobs:register_mob("arctic_life:walrus", {
  2. type = "animal",
  3. passive = false,
  4. attack_type = "dogfight",
  5. reach = 1,
  6. damage = 5,
  7. damage_max = 8,
  8. damage_chance = 100,
  9. hp_min = 15,
  10. hp_max = 45,
  11. armor = 200,
  12. collisionbox = {-0.35, -0.5, -0.35, 0.35, 0.4, 0.35},
  13. visual = "mesh",
  14. mesh = "arctic_life_walrus.b3d",
  15. drawtype = "front",
  16. textures = {
  17. {"arctic_life_walrus1.png"},
  18. {"arctic_life_walrus2.png"},
  19. },
  20. blood_texture = "mobs_blood.png",
  21. visual_size = {x=10,y=10},
  22. makes_footstep_sound = false,
  23. sounds = {
  24. random = "walrus_random.ogg",
  25. war_cry = 'walrus_war_cry.ogg',
  26. attack = 'walrus_attack.ogg'
  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 = 1,
  35. -- drops raw meat when dead
  36. drops = {
  37. {name = "mobs:meat_raw", chance = 1, min = 2, max = 5},
  38. {name = 'bonemeal:bone', chance = 2, min = 1, max = 3},
  39. },
  40. -- damaged by
  41. water_damage = 1,
  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 = 50, -- head down/up
  48. walk_start = 55, walk_end = 95, -- walk
  49. run_start = 55, run_end = 95, -- walk
  50. punch_start = 100, punch_end = 145, -- attack
  51. },
  52. follow = {"fishing:fish_raw", "mobs_fish:clownfish", "fishing:pike"},
  53. view_range = 7,
  54. })
  55. mobs:register_spawn("arctic_life:walrus", {"default:dirt_with_snow", "default:snowblock"}, 20, 0, 20000, 1, 600)
  56. mobs:register_egg("arctic_life:walrus", "Walrus", "default_grass.png", 1)