big.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. mobs:register_mob('scorpion:big', {
  2. type = 'monster',
  3. passive = false,
  4. attack_type = 'dogfight',
  5. damage = 15,
  6. hp_min = 50, hp_max = 100, armor = 30,
  7. collisionbox = {-1.2, -.6, -1, 1.2, 0.6, 1},
  8. visual = 'mesh',
  9. mesh = 'scorpion.b3d',
  10. drawtype = 'front',
  11. textures = {
  12. {'scorpion_red.png'},
  13. {'scorpion_green.png'},
  14. {'scorpion_tan.png'},
  15. },
  16. blood_texture = 'mobs_blood.png',
  17. visual_size = {x=13,y=13},
  18. makes_footstep_sound = true,
  19. sounds = {
  20. war_cry = 'scorpion_squeak',
  21. },
  22. walk_velocity = .5,
  23. run_velocity = 2,
  24. jump = true,
  25. stepheight = 2.2,
  26. reach = 4,
  27. view_range = 8,
  28. fear_height = 5,
  29. drops = {
  30. {name = 'mobs:meat_raw', chance = 1, min = 5, max = 20},
  31. {name = 'scorpion:shell', chance = 1, min = 5, max = 20},
  32. },
  33. water_damage = 2,
  34. lava_damage = 60,
  35. light_damage = 0,
  36. animation = {
  37. speed_normal = 15, speed_run = 15,
  38. stand_start = 0, stand_end = 60,
  39. walk_start = 150, walk_end = 210,
  40. run_start = 150, run_end = 210,
  41. punch_start = 220, punch_end = 260,
  42. punch2_start = 265, punch2_end = 305,
  43. punch3_start = 70, punch3_end = 140,
  44. },
  45. })
  46. mobs:spawn({
  47. name = 'scorpion:big',
  48. nodes = {'default:desert_sand'},
  49. max_light = 14,
  50. min_height = -10,
  51. max_height = 150,
  52. interval = 45,
  53. chance = 5000,
  54. active_object_count = 5,
  55. })