Msczosnal

Boss

Jul 9th, 2015
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. command /boss [<text>]:
  2. trigger:
  3. if arg 1 is "spawn":
  4. set {boss.zycie} to 60000
  5. spawn wither skeleton at player
  6. set name of last spawned entity to "&4&o&lWladca Krwi"
  7. #USUN#equip last spawned entity with diamond helmet of protection 20 and unbreaking 3 and thorns 5 #usun "#USUN#" zeby boss nie zalozyl helmu
  8. #USUN#equip last spawned entity with diamond chestplate of protection 20 and unbreaking 3 and thorns 5 #usun "#USUN#" zeby boss nie zalozyl napiersnika
  9. #USUN#equip last spawned entity with diamond leggings of protection 20 and unbreaking 3 and thorns 5 #usun "#USUN#" zeby boss nie zalozyl spodni
  10. #USUN#equip last spawned entity with diamond boots of protection 20 and unbreaking 3 and thorns 5 #usun "#USUN#" zeby boss nie zalozyl botow
  11. set last spawned entity's held item to diamond sword of sharpness 15 and unbreaking 5 and fire aspect 5
  12. set last spawned entity's max health to 60000
  13. heal last spawned entity
  14. if arg 1 is "zabij":
  15. loop entities in radius 100 of player:
  16. loop-entity is wither skeleton
  17. loop-entity's name is "&4&o&lWladca Krwi"
  18. delete loop-entity
  19. send "&aZabito %loop-entity's name%"
  20. on damage:
  21. attacker is player
  22. set damage to damage * 100
  23. victim is wither skeleton
  24. victim's name is "&4&o&lWladca Krwi":
  25. set {_zycie} to victim's health / 60000
  26. display "%victim's name%" on bossbar with {_zycie} * 100 percent by 15 seconds for attacker
  27. send "%victim's health%" to attacker
  28. send "%{_zycie}%" to attacker
  29. if victim's health is less than {boss.zycie} - 1000:
  30. remove 1000 from {boss.zycie}
  31. loop 10 times:
  32. spawn baby zombie at victim
  33. equip last spawned entity with gold helmet of protection 15 and unbreaking 3
  34. spawn 10 of particle explode offset by 0.5, 1, 0.5 at victim's location
  35. set last spawned entity's held item to diamond sword of sharpness 8 and unbreaking 5
  36. set name of last spawned entity to "&4&o&lSluga Wladcy Krwi"
  37. set last spawned entity's max health to 250
  38. heal last spawned entity
  39. victim's health - damage is less or equal to 0:
  40. cancel event
  41. kill victim
  42. drop diamond helmet of protection 30 named "&a&oNagroda &4&oBossa" at victim
  43. drop diamond chestplate of protection 30 named "&a&oNagroda &4&oBossa" at victim
  44. drop diamond leggings of protection 30 named "&a&oNagroda &4&oBossa" at victim
  45. drop diamond boots of protection 30 named "&a&oNagroda &4&oBossa" at victim
  46. drop diamond sword of sharpness 30 and fire aspect 15 and unbreaking 5 named "&a&oNagroda &4&oBossa" at victim
  47. on damage:
  48. attacker is player
  49. victim is zombie
  50. victim's name is "&4&o&lSluga Wladcy Krwi":
  51. set {_zycie} to victim's health / 250
  52. send "%victim's health%" to attacker
  53. display "%victim's name%" on bossbar with {_zycie} * 100 percent by 15 seconds for attacker
  54. victim's health - damage is less or equal to 0:
  55. cancel event
  56. kill victim
Advertisement
Add Comment
Please, Sign In to add comment