stoneman.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. mobs.register_mob("stoneman:stoneman", {
  2. description = "Stone Golem",
  3. type = "monster",
  4. passive = false,
  5. attack_type = "dogfight",
  6. pathfinding = 1,
  7. reach = 2,
  8. damage = 3*500,
  9. damage_group = "cracky",
  10. hp_min = 12*500,
  11. hp_max = 35*500,
  12. armor = 80,
  13. collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  14. visual = "mesh",
  15. mesh = "stoneman_stoneman.b3d",
  16. textures = {
  17. {"stoneman_stoneman.png"},
  18. },
  19. makes_footstep_sound = true,
  20. sounds = {
  21. random = "stoneman_stoneman",
  22. death = "stoneman_stoneman",
  23. },
  24. walk_velocity = 1,
  25. run_velocity = 2,
  26. jump = true,
  27. floats = 0,
  28. view_range = 15,
  29. drops = {
  30. {name = "default:cobble", chance = 6, min = 1, max = 6},
  31. {name = "whitestone:cobble", chance = 10, min = 5, max = 15},
  32. },
  33. water_damage = 0,
  34. lava_damage = 1*500,
  35. makes_bones_in_lava = false,
  36. light_damage = 0,
  37. animation = {
  38. speed_normal = 15,
  39. speed_run = 15,
  40. stand_start = 0,
  41. stand_end = 14,
  42. walk_start = 15,
  43. walk_end = 38,
  44. run_start = 40,
  45. run_end = 63,
  46. punch_start = 40,
  47. punch_end = 63,
  48. },
  49. hunt_chance = 5,
  50. })
  51. mobs.register_egg("stoneman:stoneman", "Stoneman", "default_stone.png", 1)
  52. -- Compatibility.
  53. mobs.alias_mob("mobs:stone_monster", "stoneman:stoneman")
  54. mobs.alias_mob("mobs_monster:stone_monster", "stoneman:stoneman")