stoneman.lua 1.3 KB

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