little.lua 1.5 KB

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