bloco.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. mobs:register_mob("nssm:bloco", {
  2. type = "monster",
  3. hp_max = 24,
  4. hp_min = 14,
  5. collisionbox = {-0.56, -0.2, -0.56, 0.56, 1.2, 0.56},
  6. visual = "mesh",
  7. mesh = "bloco.x",
  8. textures = {
  9. {"bloco.png"}
  10. },
  11. visual_size = {x = 4, y = 4},
  12. makes_footstep_sound = true,
  13. view_range = 8,
  14. fear_height = 4,
  15. walk_velocity = 0.6,
  16. run_velocity = 2.5,
  17. rotate = 270,
  18. sounds = {
  19. random = "bloco",
  20. },
  21. damage = 4,
  22. reach = 2,
  23. jump = true,
  24. drops = {
  25. {name = "nssm:life_energy", chance = 1, min = 1, max = 1},
  26. {name = "default:stone", chance = 1, min = 2, max = 3},
  27. {name = "nssm:bloco_skin", chance = 3, min = 1, max = 2},
  28. },
  29. armor = 40,
  30. drawtype = "front",
  31. water_damage = 3,
  32. lava_damage = 1,
  33. light_damage = 0,
  34. fire_damage = 0,
  35. group_attack = true,
  36. attack_animals = true,
  37. knock_back = 0,
  38. blood_texture = "stone_blood.png",
  39. immune_to = {
  40. {'default:sword_stone', -2},
  41. {'default:stone', -2},
  42. {'default:cobble', -2},
  43. {'default:axe_stone', -2},
  44. {'default:shovel_stone', -2},
  45. {'default:pick_stone', -2}
  46. },
  47. stepheight = 1.1,
  48. attack_type = "dogfight",
  49. animation = {
  50. speed_normal = 20,
  51. speed_run = 20,
  52. stand_start = 90,
  53. stand_end = 110,
  54. walk_start = 1,
  55. walk_end = 80,
  56. run_start = 120,
  57. run_end = 160,
  58. punch_start = 170,
  59. punch_end = 190,
  60. }
  61. })