Advertisement
Guest User

a

a guest
Nov 12th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. command /spawnboss:
  2. trigger:
  3. spawn 1 phantom at {_t}
  4. loop all entities in radius 0.1 around {_t}:
  5. if loop-entity is a phantom:
  6. set max health of loop-entity to 1000
  7. set health of loop-entity to 1000
  8. equip loop-entity with all diamond armor of protection 20 and unbreaking 32767
  9. set name of loop-entity to "&6&lNight Phantom"
  10.  
  11. every 5 ticks:
  12. loop all entities:
  13. if name of loop-entity contains "&6&lNight Phantom":
  14. set name of loop-entity to "&6&lNight Phantom &7[%health of loop-entity%/1,000"
  15. if name of loop-entity contains "&6&lNight Minion":
  16. set name of loop-entity to "&6&lNight Minion &7[%health of loop-entity%/210"
  17.  
  18. on damage:
  19. if name of victim contains "&6&lNight Phantom":
  20. if victim's health is below 999:
  21. chance of 5%:
  22. loop all players in radius 5 around victim:
  23. push loop-player upwards at speed 6
  24. push loop-player backwards at speed 8
  25. create a fake explosion at loop-player
  26.  
  27. on damage:
  28. if name of victim contains "&6&lNight Phantom":
  29. if victim's health is below 999:
  30. chance of 7%:
  31. remove weakness from attacker
  32. apply weakness of tier 1 to attacker for 10 seconds
  33.  
  34. on damage:
  35. if name of victim contains "&6&lNight Phantom":
  36. if victim's health is below 999:
  37. chance of 7%:
  38. remove poison from attacker
  39. apply poison of tier 2 to attacker for 10 seconds
  40.  
  41. on damage:
  42. if name of victim contains "&6&lNight Phantom":
  43. if victim's health is below 999:
  44. chance of 7%:
  45. remove blindness from attacker
  46. apply blindness of tier 1 to attacker for 10 seconds
  47.  
  48. on damage:
  49. if name of victim contains "&6&lNight Phantom":
  50. if victim's health is below 999:
  51. chance of 7%:
  52. remove slowness from attacker
  53. apply slowness of tier 1 to attacker for 10 seconds
  54.  
  55. on damage:
  56. if name of victim contains "&6&lNight Phantom":
  57. if victim's health is below 749:
  58. chance of 4%:
  59. loop 5 times:
  60. wait 1 second
  61. shoot a fireball from victim
  62.  
  63. on damage:
  64. if name of victim contains "&6&lNight Phantom":
  65. if victim's health is below 599:
  66. chance of 4%:
  67. loop 3 times:
  68. spawn a wither skull at location in front of victim's eyes
  69.  
  70. on damage:
  71. if name of victim contains "&6&lNight Phantom":
  72. if victim's health is below 199:
  73. chance of 2%
  74. spawn 3 skeletons at victim
  75. loop all entities in radius 1 around victim:
  76. if loop-entity is a skeleton:
  77. set name of loop-entity to "&6&lNight Minions"
  78. set max health of loop-entity to 210
  79. set health of loop-entity to 210
  80. set loop-entity's held item to air
  81. equip loop-entity with all chainmail armor of protection 5 and unbreaking 32767
  82.  
  83. on damage:
  84. if name of victim contains "&6&lNight Phantom":
  85. if victim's health is below 99:
  86. chance of 4:
  87. loop all players in radius 5 around victim:
  88. strike lightning effect at the loop-player
  89. damage loop-player by 4
  90.  
  91. on damage:
  92. if name of victim contains "&6&lNight Phantom":
  93. if victim's health is below 49:
  94. chance of 5%:
  95. heal victim by 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement