stone_monster.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. local S = mobs.intllib
  2. -- Stone Monster by PilzAdam
  3. mobs:register_mob("mobs_monster:stone_monster", {
  4. type = "monster",
  5. passive = false,
  6. attack_type = "dogfight",
  7. pathfinding = true,
  8. reach = 2,
  9. damage = 5,
  10. hp_min = 12,
  11. hp_max = 35,
  12. armor = 80,
  13. collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  14. visual = "mesh",
  15. mesh = "mobs_stone_monster.b3d",
  16. textures = {
  17. {"mobs_stone_monster.png"},
  18. {"mobs_stone_monster2.png"}, -- by AMMOnym
  19. },
  20. makes_footstep_sound = true,
  21. sounds = {
  22. random = "mobs_stonemonster",
  23. },
  24. walk_velocity = 1,
  25. run_velocity = 2,
  26. jump_height = 0,
  27. stepheight = 1.1,
  28. floats = 0,
  29. view_range = 10,
  30. drops = {
  31. {name = "default:cobble", chance = 1, min = 0, max = 2},
  32. {name = "default:coal_lump", chance = 3, min = 0, max = 2},
  33. {name = "default:iron_lump", chance = 5, min = 0, max = 2},
  34. {name = "commoditymarket:gold_coins", chance = 2, min = 1, max = 21},
  35. },
  36. water_damage = 0,
  37. lava_damage = 1,
  38. light_damage = 0,
  39. animation = {
  40. speed_normal = 15,
  41. speed_run = 15,
  42. stand_start = 0,
  43. stand_end = 14,
  44. walk_start = 15,
  45. walk_end = 38,
  46. run_start = 40,
  47. run_end = 63,
  48. punch_start = 40,
  49. punch_end = 63,
  50. },
  51. immune_to = {
  52. {"default:pick_wood", 0}, -- wooden pick doesnt hurt stone monster
  53. {"default:pick_stone", 4}, -- picks deal more damage to stone monster
  54. {"default:pick_bronze", 5},
  55. {"default:pick_steel", 5},
  56. {"default:pick_mese", 6},
  57. {"default:pick_diamond", 7},
  58. {"epic:pick_titanium", 9},
  59. },
  60. })
  61. mobs:spawn({
  62. name = "mobs_monster:stone_monster",
  63. nodes = {"default:stone", "default:desert_stone", "default:sandstone"},
  64. max_light = 7,
  65. chance = 7000,
  66. max_height = 0,
  67. })
  68. mobs:register_egg("mobs_monster:stone_monster", S("Stone Monster"), "default_stone.png", 1)
  69. mobs:alias_mob("mobs:stone_monster", "mobs_monster:stone_monster") -- compatibility