init.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. -- SOUND :
  2. -- https://freesound.org/people/Volvion/sounds/609780/
  3. mobs:register_mob("crazymushroom:crazymushroom", {
  4. --stay_near = {"ethereal:mushroom_dirt", 10},
  5. nametag = "Crazy Mushroom Boss" ,
  6. type = "monster",
  7. passive = false,
  8. attack_npcs = false,
  9. attack_type = "dogfight",
  10. pathfinding = true,
  11. reach = 8,
  12. damage = 17,
  13. hp_min = 1200,
  14. hp_max = 1200,
  15. armor = 80,
  16. collisionbox = {-0.7, -1.72, -0.7, 0.7, 1.4, 0.7},
  17. visual = "mesh",
  18. mesh = "crazymushrrom.b3d",
  19. rotate = 180,
  20. textures = {
  21. {"crazymushrrom.png"},
  22. },
  23. --glow = 2,
  24. blood_texture = "ethereal_mushroom_sapling.png",
  25. makes_footstep_sound = true,
  26. sounds = {
  27. random = "crazyman",
  28. --attack = " ",
  29. --death = "",
  30. },
  31. walk_velocity = 2,
  32. run_velocity = 4,
  33. jump_height = 5,
  34. stepheight = 3.0,
  35. floats = 0,
  36. view_range = 35,
  37. drops = {
  38. {name = "ebitems:glove_glove", chance = 1, min = 1, max = 1},
  39. {name = "ebitems:crazymushrrom_trophy", chance = 1, min = 1, max = 1},
  40. --{name = "", chance = 2, min = 1, max = 2},
  41. },
  42. water_damage = 0,
  43. lava_damage = 1,
  44. light_damage = 0,
  45. animation = {
  46. speed_normal = 20,
  47. speed_run = 20,
  48. stand_start = 0,
  49. stand_end = 0,
  50. walk_start = 20,
  51. walk_end = 60,
  52. run_start = 70,
  53. run_end = 90,
  54. punch_start = 100,
  55. punch_end = 120,
  56. },
  57. })
  58. mobs:spawn({
  59. name = "crazymushroom:crazymushroom",
  60. nodes = {"ethereal:mushroom_dirt","ethereal:mushroom"},
  61. max_light = 7,
  62. chance = 12000,
  63. max_height = 200,
  64. min_height = 0,
  65. })
  66. mobs:register_egg("crazymushroom:crazymushroom", "crazymushroom", "ethereal_mushroom_block.png", 1)
  67. core.register_alias("crazymushroom:crazymushroom", "spawneggs:crazymushroom")
  68. mobs:alias_mob("crazymushroom:crazymushroom", "mobs:crazymushroom") -- compatibility