init.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. local bugstone_types = {
  2. { nodes = { "default:stone"},
  3. skins = {"dude_stone.png"},
  4. drops = {
  5. {name = "default:stone", chance = 1, min = 1, max = 4},
  6. },
  7. },
  8. { nodes = {"default:desert_stone"},
  9. skins = {"dude_stone2.png"},
  10. drops = {
  11. {name = "default:desert_stone", chance = 1, min = 1, max = 4},
  12. },
  13. }
  14. }
  15. local bugstonenods = {
  16. "default:stone",
  17. "default:desert_stone",
  18. }
  19. -- BUG STONE
  20. mobs:register_mob("bugstone:bugstone", {
  21. -- nametag = "Bug Stone" ,
  22. type = "monster",
  23. passive = false,
  24. attack_npcs = false,
  25. attack_type = "dogfight",
  26. pathfinding = true,
  27. reach = 2,
  28. damage = 3,
  29. hp_min = 20,
  30. hp_max = 20,
  31. armor = 100,
  32. collisionbox = {-0.2, -0.4, -0.2, 0.2, 0.1, 0.01},
  33. visual = "mesh",
  34. mesh = "dude_stone.b3d",
  35. rotate = 180,
  36. textures = {
  37. {"dude_stone.png","dude_stone2.png"},
  38. },
  39. blood_texture = "faisca.png",
  40. makes_footstep_sound = true,
  41. sounds = {
  42. --attack = "",
  43. --death = "",
  44. },
  45. walk_velocity = 1,
  46. run_velocity = 5,
  47. jump_height = 1,
  48. stepheight = 1.1,
  49. floats = 0,
  50. view_range = 20,
  51. drops = {
  52. {name = "default:stone", chance = 2, min = 1, max = 1},
  53. },
  54. water_damage = 0,
  55. lava_damage = 1,
  56. light_damage = 0,
  57. animation = {
  58. speed_normal = 15,
  59. speed_run = 15,
  60. stand_start = 0,
  61. stand_end = 0,
  62. walk_start = 15,
  63. walk_end = 33,
  64. run_start = 35,
  65. run_end = 43,
  66. punch_start = 45,
  67. punch_end = 53,
  68. },
  69. })
  70. mobs:spawn({
  71. name = "bugstone:bugstone",
  72. nodes = bugstonenods,
  73. max_light = 7,
  74. chance = 8000,
  75. --min_height = 0,
  76. max_height = -10,
  77. })
  78. mobs:register_egg("bugstone:bugstone", "Bug Stone", "default_stone.png", 1)
  79. core.register_alias("bugstone:bugstone", "spawneggs:bugstone")