Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1.  
  2. options:
  3. czas: 1
  4. hp: 500
  5. atak: 5
  6. imie: Grazyna
  7. eq: tak
  8. helm: diamond
  9. klata: diamond
  10. gacie: diamond
  11. buty: diamond
  12. bron: diamond
  13.  
  14.  
  15.  
  16.  
  17. every {@czas} hours:
  18. broadcast "&f[&cBOSS&f]&a BOSS zostal zespawnowany!"
  19. set {_loc.x} to random integer between -61 and -62
  20. set {_loc.z} to random integer between -35 and -36
  21. set {_loc.y} to 69
  22. set {_loc} to location at {_loc.x}, {_loc.y}, {_loc.z} in the world "world"
  23. spawn a zombie at {_loc}
  24. apply speed 1 to the last spawned entity for 10 seconds
  25. apply resistance 99 to the last spawned entity for 5 seconds
  26. set the last spawned entity's max health to {@hp}
  27. heal last spawned entity
  28. set the spawned zombie's display name to "&a{@imie} &6%spawned zombie's health%/%max health of last spawned entity%"
  29. if "{@eq}" is "tak":
  30. set helmet of the spawned zombie to a {@helm} helmet of protection 1
  31. set chestplate of the spawned zombie to a {@klata} chestplate of protection 1
  32. set leggings of the spawned zombie to a {@gacie} leggings of protection 1
  33. set boots of the spawned zombie to a {@buty} boots of protection 1
  34. set tool of the spawned zombie to a {@bron} sword of sharpness 1
  35.  
  36. on damage of creature:
  37. if name of victim contains "{@imie}":
  38. set name of victim to "&a{@imie} &6%health of victim%/%max health of victim%"
  39. if damage was caused by fire:
  40. cancel event
  41. if damage was caused by fall:
  42. cancel event
  43. if damage was caused by potion:
  44. cancel event
  45. on damage:
  46. if attacker is a zombie:
  47. name of attacker is "{@imie}":
  48. set damage to {@atak}
  49. on death of player:
  50. if attacker is zombie:
  51. name of attacker is "{@imie}":
  52. broadcast "&f[&cBOSS&f]&7 Zombie {@imie} zabił gracza &a%player%"
  53. on death of creature:
  54. if victim is zombie:
  55. name of victim contains "&a{@imie}":
  56. broadcast "&f[&cBOSS&f] &aBOSS &c{@imie}&a zostal zabity przez Gracza&c %attacker%"
  57. chance of 20%:
  58. add a diamond sword of sharpness 4 named "&6&lMiecz Grazyny" to inventory of attacker
  59. stop
  60. chance of 30%:
  61. add a paper named "&6&lBilet do&5&l Netheru" to inventory of attacker
  62. stop
  63. chance of 20%:
  64. add a diamond helmet of protection 5 named "&6&lHelm Grazyny" to inventory of attacker
  65. stop
  66. chance of 20%:
  67. add a diamond chestplate of protection 5 named "&6&lKlata Grazyny" to inventory of attacker
  68. stop
  69. chance of 20%:
  70. add a diamond leggings of protection 5 named "&6&lGacie Grazyny" to inventory of attacker
  71. stop
  72. chance of 20%:
  73. add a diamond boots of protection 5 named "&6&lButy Grazyny" to inventory of attacker
  74. stop
  75. chance of 20%:
  76. add a bow of power 5 named "&6&lLuk Grazyny" to inventory of attacker
  77. command /boss:
  78. trigger:
  79. broadcast "&f[&cBOSS&f]&a BOSS zostal zespawnowany!"
  80. set {_loc.x} to random integer between -61 and -62
  81. set {_loc.z} to random integer between -35 and -36
  82. set {_loc.y} to 69
  83. set {_loc} to location at {_loc.x}, {_loc.y}, {_loc.z} in the world "world"
  84. spawn a zombie at {_loc}
  85. apply speed 1 to the last spawned entity for 10 seconds
  86. apply resistance 99 to the last spawned entity for 5 seconds
  87. set the last spawned entity's max health to {@hp}
  88. heal last spawned entity
  89. set the spawned zombie's display name to "&a{@imie} &6%spawned zombie's health%/%max health of last spawned entity%"
  90. if "{@eq}" is "tak":
  91. set helmet of the spawned zombie to a {@helm} helmet of protection 1
  92. set chestplate of the spawned zombie to a {@klata} chestplate of protection 1
  93. set leggings of the spawned zombie to a {@gacie} leggings of protection 1
  94. set boots of the spawned zombie to a {@buty} boots of protection 1
  95. set tool of the spawned zombie to a {@bron} sword of sharpness 1
  96. on damage of creature:
  97. if victim is zombie:
  98. name of victim contains "{@imie}":
  99. if {@hp} is 200 or 201 or 202 or 203 or 204:
  100. send "O nie! Moja"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement