walrus.lua 1.5 KB

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