Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. local S = mobs.intllib
  2.  
  3.  
  4. -- Stone Monster by PilzAdam
  5.  
  6. mobs:register_mob("mobs_monster:stone_monster", {
  7. type = "monster",
  8. passive = false,
  9. attack_type = "dogfight",
  10. pathfinding = true,
  11. reach = 2,
  12. damage = 3,
  13. hp_min = 12,
  14. hp_max = 35,
  15. armor = 80,
  16. collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  17. visual = "mesh",
  18. mesh = "mobs_stone_monster.b3d",
  19. textures = {
  20. {"mobs_stone_monster.png"},
  21. {"mobs_stone_monster2.png"}, -- by AMMOnym
  22. },
  23. makes_footstep_sound = true,
  24. sounds = {
  25. random = "mobs_stonemonster",
  26. },
  27. walk_velocity = 1,
  28. run_velocity = 2,
  29. jump_height = 0,
  30. stepheight = 1.1,
  31. floats = 0,
  32. view_range = 10,
  33. drops = {
  34. {name = "default:torch", chance = 2, min = 3, max = 5},
  35. {name = "default:iron_lump", chance = 5, min = 1, max = 2},
  36. {name = "default:coal_lump", chance = 3, min = 1, max = 3},
  37. },
  38. water_damage = 0,
  39. lava_damage = 1,
  40. light_damage = 0,
  41. animation = {
  42. speed_normal = 15,
  43. speed_run = 15,
  44. stand_start = 0,
  45. stand_end = 14,
  46. walk_start = 15,
  47. walk_end = 38,
  48. run_start = 40,
  49. run_end = 63,
  50. punch_start = 40,
  51. punch_end = 63,
  52. },
  53. })
  54.  
  55.  
  56. mobs:spawn({
  57. name = "mobs_monster:stone_monster",
  58. nodes = {"default:stone", "default:desert_stone", "default:sandstone"},
  59. max_light = 7,
  60. chance = 7000,
  61. max_height = 0,
  62. })
  63.  
  64.  
  65. mobs:register_egg("mobs_monster:stone_monster", S("Stone Monster"), "default_stone.png", 1)
  66.  
  67.  
  68. mobs:alias_mob("mobs:stone_monster", "mobs_monster:stone_monster") -- compatibility
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement