ostrich.lua 1.3 KB

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