little.lua 1.4 KB

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