armadillo.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. local S = mobs.intllib
  2. mobs:register_mob("desert_life:armadillo", {
  3. type = "animal",
  4. passive = false,
  5. attack_type = "dogfight",
  6. group_attack = true,
  7. reach = 2,
  8. damage = 1,
  9. hp_min = 5,
  10. hp_max = 10,
  11. armor = 75,
  12. collisionbox = {-0.35, -0.5, -0.35, 0.35, 0.0, 0.35},
  13. visual = "mesh",
  14. mesh = "dl_armadillo.b3d",
  15. textures = {
  16. {'dl_armadillo_1.png'},
  17. {'dl_armadillo_2.png'},
  18. },
  19. visual_size = {x=9, y=9},
  20. makes_footstep_sound = true,
  21. -- sounds = {
  22. -- random = "mobs_chicken",
  23. -- },
  24. walk_velocity = 1,
  25. run_velocity = 3,
  26. jump = true,
  27. drops = {
  28. {name = "mobs:meat_raw", chance = 1, min = 1, max =1},
  29. },
  30. water_damage = 1,
  31. lava_damage = 5,
  32. light_damage = 0,
  33. fall_damage = 0,
  34. fall_speed = -8,
  35. fear_height = 5,
  36. animation = {
  37. speed_normal = 2,
  38. speed_run = 8,
  39. stand_start = 45,
  40. stand_end = 70,
  41. walk_start = 0,
  42. walk_end = 40,
  43. punch_start = 75,
  44. punch_end = 95,
  45. },
  46. follow = {"farming:seed_wheat", "farming:seed_cotton"},
  47. view_range = 5,
  48. replace_what = {'group:flora', 'group:plant'},
  49. replace_with = 'air',
  50. replace_rate = 10,
  51. })
  52. mobs:spawn({
  53. name = 'desert_life:armadillo',
  54. nodes = {'default:desert_sand', 'default:desert_stone'},
  55. min_height = 0,
  56. max_height = 100,
  57. interval = 60,
  58. chance = 8000,
  59. active_object_count = 5,
  60. })