snail.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. mobs:register_mob('fantasy_mobs:snail', {
  2. description = 'Snail',
  3. type = 'animal',
  4. passive = true,
  5. damage = 3,
  6. damage_max = 10,
  7. damage_chance = 85,
  8. attack_type = 'dogfight',
  9. hp_min = 40,
  10. hp_max = 100,
  11. armor = 40,
  12. collisionbox = {-.35, 0, -.35, .35, .3, .35},
  13. visual = 'mesh',
  14. mesh = 'fantasy_snail.b3d',
  15. textures = {
  16. {'fantasy_snail_1.png'},
  17. {'fantasy_snail_2.png'},
  18. {'fantasy_snail_3.png'},
  19. {'fantasy_snail_4.png'},
  20. {'fantasy_snail_5.png'},
  21. },
  22. visual_size = {x = 10, y = 10},
  23. walk_velocity = 1,
  24. run_velocity = 3,
  25. water_damage = 0,
  26. lava_damage = 10,
  27. view_range = 8,
  28. reach = 2,
  29. replace_rate = 3,
  30. replace_what = {
  31. {'default:torch', 'epic:glow_crystal'},
  32. },
  33. drops = {
  34. {name = 'default:torch', chance = 100, min = 0, max = 99},
  35. {name = 'maxhp:lifeforce1', chance = 10, min = 0, max = 3},
  36. {name = 'maxhp:lifeforce5', chance = 150, min = 0, max = 1},
  37. {name = 'epic:glow_crystal', chance = 10, min = 1, max = 1},
  38. {name = 'illuminati:cone_off', chance = 300, min = 0, max = 1},
  39. {name = 'illuminati:core_off', chance = 300, min = 0, max = 1}
  40. },
  41. runaway_from = {'fantasy_mobs:cavefreak_fire', 'fantasy_mobs:cavefreak_slash'},
  42. animation = {
  43. stand1_start = 0,
  44. stand1_end = 59,
  45. stand2_start = 60,
  46. stand2_end = 119,
  47. walk_start = 120,
  48. walk_end = 179,
  49. punch_start = 180,
  50. punch_end = 239,
  51. },
  52. })
  53. mobs:spawn({
  54. name = 'fantasy_mobs:snail',
  55. nodes = {'caverealms:stone_with_algae', 'caverealms:stone_with_moss', 'caverealms:stone_with_lichen'},
  56. min_height = -22000,
  57. max_height = -1500,
  58. interval = 64,
  59. chance = 10000,
  60. active_object_count = 5,
  61. })