stoneman.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. mobs.register_mob("stoneman:stoneman", {
  2. description = "Stone Golem",
  3. type = "monster",
  4. passive = false,
  5. attack_type = "dogfight",
  6. pathfinding = 2,
  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. })
  49. mobs.register_egg("stoneman:stoneman", "Stoneman", "default_stone.png", 1)
  50. -- Compatibility.
  51. mobs.alias_mob("mobs:stone_monster", "stoneman:stoneman")
  52. mobs.alias_mob("mobs_monster:stone_monster", "stoneman:stoneman")