Advertisement
Hsuwan

Untitled

Sep 15th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.52 KB | None | 0 0
  1. on right click:
  2. loop {_lore::*}:
  3. if {_lore::%loop-index%} contains "可施展技能" or "能":
  4. set {_技能} to {_lore::%loop-index%}#儲存技能注解
  5. if {_check} is 5:#檢測是不是無關數字
  6. set {_check} to 1#確認可以開技能
  7. if {_lore::%loop-index%} contains "職業限制" or "職業需求":
  8. set {_職業} to {_lore::%loop-index%}#儲存職業注解
  9. set {_check} to 0#因為有職業限制,先檢查職業
  10. exit loop
  11. if {_check} is 0:
  12. if {_職業} is 0:#沒變化就停止.
  13. damage player by 100000
  14. stop
  15. loop {職業::*}:
  16. if "%{_職業}%" contains "%loop-value%":
  17. if {玩家資料.%player%::職業} is "%loop-value%":
  18. set {_check} to 1#允許過職業關
  19. if "%{_技能}%" contains "旋風迴箭":
  20. if difference between {冷卻.%player%::旋風迴箭} and now is more than or equal to 0.5 second:
  21. delete {冷卻.%player%::旋風迴箭}
  22. if {冷卻.%player%::旋風迴箭} is set:
  23. send "&c&l《旋風迴箭》&e冷卻中,請稍後再使用"
  24. stop
  25. set {冷卻.%player%::旋風迴箭} to now
  26. send "&e你使用了&c&l《旋風迴箭》"
  27. play raw sound "mob.sheep.shear" at player with pitch 0 volume 1
  28. thrust player upwards with force 0.6
  29. wait 5 ticks
  30. loop entities in radius 6 of player:
  31. if loop-entity isn't a player:
  32. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 1.95
  33. play raw sound "dig.sand" at player with pitch 0 volume 2
  34. spawn 30 of particle cloud offset by 3, -1, -3 at location of player
  35. stop
  36. if "%{_技能}%" contains "天空之禽領域":
  37. if difference between {冷卻.%player%::天空之禽領域} and now is more than or equal to 30 second:
  38. delete {冷卻.%player%::天空之禽領域}
  39. if {冷卻.%player%::天空之禽領域} is set:
  40. send "&c&l《天空之禽領域》&e冷卻中,請稍後再使用"
  41. stop
  42. send "&e你使用了&c&l《天空之禽領域》"
  43. set {冷卻.%player%::天空之禽領域} to now
  44. loop blocks in radius 10 of player:
  45. if targeted block is loop-block:
  46. set {_天空之禽領域位置} to location of loop-block
  47. loop 20 times:
  48. loop entities in radius 6 around location of block at {_天空之禽領域位置}:
  49. if loop-entity isn't a player:
  50. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 3.5
  51. push the loop-entity downwards with force 0.2
  52. play raw sound "mob.chicken.say" at loop-entity with pitch 2 volume 1
  53. spawn 20 of particle explode offset by -4, 0.1, 4 at location of {_天空之禽領域位置}
  54. spawn 20 of particle mob spell ambient offset by 0.3, 0.5, 0.3 at location of loop-entity
  55. wait 30 ticks
  56. delete {_天空之禽領域位置}
  57. stop
  58. if "%{_技能}%" contains "黏稠毒霧":
  59. if difference between {冷卻.%player%::黏稠毒霧} and now is more than or equal to 10 second:
  60. delete {冷卻.%player%::黏稠毒霧}
  61. if {冷卻.%player%::黏稠毒霧} is set:
  62. send "&c&l《黏稠毒霧》&e冷卻中,請稍後再使用"
  63. stop
  64. set {冷卻.%player%::黏稠毒霧} to now
  65. send "&e你使用了&c&l《黏稠毒霧》"
  66. play raw sound "random.anvil_land" at player with pitch 2 volume 1
  67. loop entities in radius 20 of player:
  68. if loop-entity is targeted a entity:
  69. if loop-entity isn't a player:
  70. loop 15 times:
  71. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 3
  72. apply slowness 1 to the loop-entity for 20 ticks
  73. spawn 40 of particle happy villager offset by 0.5, 0.3, 0.5 at location of loop-entity
  74. play raw sound "mob.slime.attack" at player with pitch 1 volume 1
  75. wait 20 ticks
  76. stop
  77. if "%{_技能}%" contains "地熱粉碎":
  78. if difference between {冷卻.%player%::地熱粉碎} and now is more than or equal to 15 second:
  79. delete {冷卻.%player%::地熱粉碎}
  80. if {冷卻.%player%::地熱粉碎} is set:
  81. send "&c&l《地熱粉碎》&e冷卻中,請稍後再使用"
  82. stop
  83. set {冷卻.%player%::地熱粉碎} to now
  84. send "&e你使用了&c&l《地熱粉碎》"
  85. play raw sound "mob.wither.death" at player with pitch 0 volume 2
  86. apply slowness 10 to the player for 30 ticks
  87. wait 30 ticks
  88. loop entities in radius 8 of player:
  89. if loop-entity isn't a player or a dropped item:
  90. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 7.5
  91. thrust loop-entity upwards with force 0.2
  92. thrust loop-entity backwards with force 0.2
  93. ignite the loop-entity for 5 second
  94. spawn 30 of particle flame offset by 2, 4, -2 at location of player
  95. spawn 30 of particle angry villager offset by 2, 4, -2 at location of player
  96. spawn 30 of particle smoke offset by 2, 4, -2 at location of player
  97. stop
  98. if "%{_技能}%" contains "雷電鳴泣":
  99. if difference between {冷卻.%player%::雷電鳴泣} and now is more than or equal to 4 second:
  100. delete {冷卻.%player%::雷電鳴泣}
  101. if {冷卻.%player%::雷電鳴泣} is set:
  102. send "&c&l《雷電鳴泣》&e冷卻中,請稍後再使用"
  103. stop
  104. set {冷卻.%player%::雷電鳴泣} to now
  105. send "&e你使用了&c&l《雷電鳴泣》"
  106. set {_雷電鳴泣} to block 0 blocks in front player
  107. play raw sound "random.orb" at player with pitch 1 volume 2
  108. loop entities in radius 5 around block at location of {_雷電鳴泣}:
  109. if loop-entity isn't a player or a dropped item:
  110. apply slowness 10 to the loop-entity for 10 ticks
  111. spawn 30 of particle fireworks spark offset by 3, 3, -3 at location of {_雷電鳴泣}
  112. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 1.15
  113. wait 15 ticks
  114. play raw sound "random.orb" at player with pitch 1 volume 2
  115. loop entities in radius 5 around block at location of {_雷電鳴泣}:
  116. if loop-entity isn't a player or a dropped item:
  117. apply slowness 10 to the loop-entity for 10 ticks
  118. spawn 30 of particle fireworks spark offset by 3, 3, -3 at location of {_雷電鳴泣}
  119. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 1.15
  120. wait 15 ticks
  121. play raw sound "random.orb" at player with pitch 1 volume 2
  122. loop entities in radius 5 around block at location of {_雷電鳴泣}:
  123. if loop-entity isn't a player or a dropped item:
  124. apply slowness 10 to the loop-entity for 10 ticks
  125. spawn 30 of particle fireworks spark offset by 3, 3, -3 at location of {_雷電鳴泣}
  126. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 1.15
  127. stop
  128. if "%{_技能}%" contains "冰鍊束縛":
  129. if difference between {冷卻.%player%::冰鍊束縛} and now is more than or equal to 12 second:
  130. delete {冷卻.%player%::冰鍊束縛}
  131. if {冷卻.%player%::冰鍊束縛} is set:
  132. send "&c&l《冰鍊束縛》&e冷卻中,請稍後再使用"
  133. stop
  134. send "&e你使用了&c&l《冰鍊束縛》"
  135. play raw sound "liquid.splash" at player with pitch 2 volume 1
  136. loop entities in radius 15 of player:
  137. if loop-entity is targeted a entity:
  138. if loop-entity isn't a player:
  139. set {冷卻.%player%::冰鍊束縛} to now
  140. loop 3 times:
  141. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 4.5
  142. apply slowness 10 to the loop-entity for 40 ticks
  143. spawn 45 of particle snowball poof offset by 0.3, 0.5, 0.3 at location of loop-entity
  144. play raw sound "mob.irongolem.hit" at player with pitch 2 volume 1
  145. wait 40 ticks
  146. if {冷卻.%player%::冰鍊束縛} is set:
  147. stop
  148. send "&c&l《冰鍊束縛》&7命中失敗。"
  149. stop
  150. if "%{_技能}%" contains "聖河淋浴":
  151. if difference between {冷卻.%player%::聖河淋浴} and now is more than or equal to 6 second:
  152. delete {冷卻.%player%::聖河淋浴}
  153. if {冷卻.%player%::聖河淋浴} is set:
  154. send "&c&l《聖河淋浴》&e冷卻中,請稍後再使用"
  155. stop
  156. send "&e你使用了&c&l《聖河淋浴》"
  157. apply slowness 10 to the player for 1 ticks
  158. play raw sound "random.drink" at player with pitch 1 volume 1
  159. wait 1 ticks
  160. loop entities in radius 12 of player:
  161. if loop-entity is targeted a entity:
  162. if loop-entity is a player:
  163. set {冷卻.%player%::聖河淋浴} to now
  164. heal loop-entity by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.25) / (loop-entity's max health + {飾品狀態.%loop-entity%::血量增加}) * loop-entity's max health
  165. spawn 50 of particle fireworks spark offset by 0.3, 2, 0.3 at location of loop-entity
  166. spawn 20 of particle heart offset by 0.1, 0.5, 0.1 at location of loop-entity
  167. send "&e你已被 %player% 的&c&l《聖河淋浴》&e治療了" to loop-entity
  168. if {冷卻.%player%::聖河淋浴} is set:
  169. stop
  170. send "&c&l《聖河淋浴》&7命中失敗。"
  171. stop
  172. if "%{_技能}%" contains "霧彈爆射":
  173. if difference between {冷卻.%player%::霧彈爆射} and now is more than or equal to 3 second:
  174. delete {冷卻.%player%::霧彈爆射}
  175. if {冷卻.%player%::霧彈爆射} is set:
  176. send "&c&l《霧彈爆射》&e冷卻中,請稍後再使用"
  177. stop
  178. set {冷卻.%player%::霧彈爆射} to now
  179. send "&e你使用了&c&l《霧彈爆射》"
  180. set {_霧彈爆射} to block 2 blocks in front player
  181. play raw sound "random.explode" at player with pitch 2 volume 2
  182. loop entities in radius 4 around block at location of {_霧彈爆射}:
  183. if loop-entity isn't a player or a dropped item:
  184. spawn 40 of particle large smoke offset by 2, 1, -1 at location of {_霧彈爆射}
  185. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 2.75
  186. thrust loop-entity upwards with force 0.2
  187. thrust loop-entity backwards with force 0.2
  188. stop
  189. if "%{_技能}%" contains "突擊翻滾":
  190. if difference between {冷卻.%player%::突擊翻滾} and now is more than or equal to 10 ticks:
  191. delete {冷卻.%player%::突擊翻滾}
  192. if {冷卻.%player%::突擊翻滾} is set:
  193. send "&c&l《突擊翻滾》&e冷卻中,請稍後再使用"
  194. stop
  195. set {冷卻.%player%::突擊翻滾} to now
  196. send "&e你使用了&c&l《突擊翻滾》"
  197. play raw sound "mob.enderdragon.wings" at player with pitch 2 volume 2
  198. spawn 15 of particle instant spell offset by 0.3, 0.6, -0.3 at location of player
  199. thrust player forwards with force 0.8
  200. thrust player upwards with force 0.2
  201. stop
  202. if "%{_技能}%" contains "天使之箭":
  203. if difference between {冷卻.%player%::天使之箭} and now is more than or equal to 3 second:
  204. delete {冷卻.%player%::天使之箭}
  205. if {冷卻.%player%::天使之箭} is set:
  206. send "&c&l《天使之箭》&e冷卻中,請稍後再使用"
  207. stop
  208. set {冷卻.%player%::天使之箭} to now
  209. send "&e你使用了&c&l《天使之箭》"
  210. set {_particle} to spell
  211. play raw sound "random.bow" at player with pitch 2 volume 1
  212. set {_天使之箭.1} to block above player#玩家自身座標
  213. set {_天使之箭.2} to block 30 blocks in front player#玩家前方十格座標
  214. set {_x.1} to x-coordinate of {_天使之箭.1}#玩家自身x座標
  215. set {_x.2} to x-coordinate of {_天使之箭.2}#玩家前方十格x座標
  216. set {_y.1} to y-coordinate of {_天使之箭.1}#玩家自身y座標
  217. set {_y.2} to y-coordinate of {_天使之箭.2}#玩家前方十格y座標
  218. set {_z.1} to z-coordinate of {_天使之箭.1}#玩家自身z座標
  219. set {_z.2} to z-coordinate of {_天使之箭.2}#玩家前方十格z座標
  220. set {_x.difference} to ({_x.2} - {_x.1}) / 25#計算玩家自身與玩家前方十格 座標差 除以30次
  221. set {_y.difference} to ({_y.2} - {_y.1}) / 25#計算玩家自身與玩家前方十格 座標差 除以30次
  222. set {_z.difference} to ({_z.2} - {_z.1}) / 25#計算玩家自身與玩家前方十格 座標差 除以30次
  223. loop 25 times:#增加座標差30次
  224. increase x-coordinate of {_天使之箭.1} by {_x.difference}#增加座標x差 1次
  225. increase y-coordinate of {_天使之箭.1} by {_y.difference}#增加座標y差 1次
  226. increase z-coordinate of {_天使之箭.1} by {_z.difference}#增加座標z差 1次
  227. spawn 3 of particle {_particle} offset by 0.1, 0.1, -0.1 at location of {_天使之箭.1}#特效
  228. loop entities in radius 2 around block at location of {_天使之箭.1}:#給予範圍傷
  229. make player damage loop-entity by {飾品狀態.%player%::智慧} * 2.5 + {玩家資料.%player%::智慧} * 2.5
  230. thrust player upwards with force 0.5
  231. wait 1 ticks#給予時間差讓特效有慢慢跑的效果
  232. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement