armadillo.lua 1.4 KB

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