Hsuwan

Untitled

Sep 2nd, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.92 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 15 second:
  21. delete {冷卻.%player%::空襲援助}
  22. if {冷卻.%player%::空襲援助} is set:
  23. send "&c&l《空襲援助》&e冷卻中,請稍後再使用"
  24. stop
  25. send "&e你使用了&c&l《空襲援助》"
  26. set {冷卻.%player%::空襲援助} to now
  27. apply slowness 10 to the player for 20 ticks
  28. play raw sound "mob.endermen.scream" at player with pitch 2 volume 2
  29. spawn 1 of particle huge explosion offset by 0, 0, 0 at location of player
  30. loop entities in radius 9 of player:
  31. if loop-entity isn't a player or a dropped item:
  32. set {冷卻.%player%::空襲援助} to now
  33. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 6.5
  34. spawn 1 of particle huge explosion offset by 0, 0, 0 at location of loop-entity
  35. ignite loop-entity for 20 ticks
  36. thrust loop-entity backwards with force 1.5
  37. stop
  38. if "%{_技能}%" contains "捕獵":
  39. if difference between {冷卻.%player%::捕獵} and now is more than or equal to 6 second:
  40. delete {冷卻.%player%::捕獵}
  41. if {冷卻.%player%::捕獵} is set:
  42. send "&c&l《捕獵》&e冷卻中,請稍後再使用"
  43. stop
  44. send "&e你使用了&c&l《捕獵》"
  45. set {冷卻.%player%::捕獵} to now
  46. play raw sound "mob.bat.death" at player with pitch 2 volume 1
  47. apply slowness 10 to the player for 10 ticks
  48. set {_捕獵} to block 5 blocks in front player
  49. loop entities in radius 7 of {_捕獵}:
  50. if loop-entity isn't a player or a dropped item:
  51. wait 2 ticks
  52. set {冷卻.%player%::捕獵} to now
  53. teleport loop-entity to {_捕獵}
  54. play raw sound "mob.bat.death" at player with pitch 2 volume 1
  55. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 2.25
  56. spawn 50 of particle explode offset by 0.5, 1, -0.5 at location of loop-entity
  57. spawn 50 of particle crit offset by 2, 4, -2 at location of loop-entity
  58. apply slowness 3 to the loop-entity for 10 ticks
  59. stop
  60. if "%{_技能}%" contains "暗殺五部曲":
  61. if difference between {冷卻.%player%::暗殺五部曲} and now is more than or equal to 5 second:
  62. delete {冷卻.%player%::暗殺五部曲}
  63. if {冷卻.%player%::暗殺五部曲} is set:
  64. send "&c&l《暗殺五部曲》&e冷卻中,請稍後再使用"
  65. stop
  66. send "&e你使用了&c&l《暗殺五部曲》"
  67. set {冷卻.%player%::暗殺五部曲} to now
  68. play raw sound "mob.endermen.death" at player with pitch 2 volume 1
  69. spawn 60 of particle drip water offset by 1, 2, -1 at location of player
  70. apply slowness 10 to the player for 30 ticks
  71. set {_暗殺五部曲} to block 1 blocks in front player
  72. loop 2 times:
  73. loop entities in radius 6 of {_暗殺五部曲}:
  74. if loop-entity isn't a player or a dropped item:
  75. set {冷卻.%player%::暗殺五部曲} to now
  76. play raw sound "mob.skeleton.hurt" at player with pitch 0 volume 1
  77. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 1.5
  78. spawn 50 of particle red dust offset by 0.5, 1, -0.5 at location of loop-entity
  79. spawn 50 of particle large smoke offset by 2, 4, -2 at location of loop-entity
  80. apply slowness 3 to the loop-entity for 10 ticks
  81. wait 10 ticks
  82. wait 10 ticks
  83. set {_暗殺五部曲tp} to block 8 blocks in front player
  84. teleport player to {_暗殺五部曲tp}
  85. loop 3 times:
  86. loop entities in radius 6 of {_暗殺五部曲}:
  87. if loop-entity isn't a player or a dropped item:
  88. set {冷卻.%player%::暗殺五部曲} to now
  89. play raw sound "mob.skeleton.hurt" at player with pitch 0 volume 1
  90. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 1
  91. spawn 50 of particle red dust offset by 0.5, 1, -0.5 at location of loop-entity
  92. spawn 50 of particle large smoke offset by 2, 4, -2 at location of loop-entity
  93. apply slowness 3 to the loop-entity for 10 ticks
  94. wait 10 ticks
  95. stop
  96. if "%{_技能}%" contains "天堂狙擊":
  97. if difference between {冷卻.%player%::天堂狙擊} and now is more than or equal to 15 second:
  98. delete {冷卻.%player%::天堂狙擊}
  99. if {冷卻.%player%::天堂狙擊} is set:
  100. send "&c&l《天堂狙擊》&e冷卻中,請稍後再使用"
  101. stop
  102. set {冷卻.%player%::天堂狙擊} to now
  103. send "&e你使用了&c&l《天堂狙擊》"
  104. play raw sound "mob.zombie.woodbreak" at player with pitch 2 volume 1
  105. loop entities in radius 20 of player:
  106. if loop-entity is targeted a entity:
  107. if loop-entity isn't a player:
  108. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 10
  109. spawn 20 of particle cloud offset by 0, 0.3, 1 at location of loop-entity
  110. spawn 20 of particle cloud offset by 0, 0.3, -1 at location of loop-entity
  111. spawn 20 of particle cloud offset by 1, 0.3, 0 at location of loop-entity
  112. spawn 20 of particle cloud offset by -1, 0.3, 0 at location of loop-entity
  113. spawn 80 of particle crit offset by 0.1, 5, -0.1 at location of loop-entity
  114. stop
  115. if "%{_技能}%" contains "暗器連擲":
  116. if difference between {冷卻.%player%::暗器連擲} and now is more than or equal to 10 second:
  117. delete {冷卻.%player%::暗器連擲}
  118. if {冷卻.%player%::暗器連擲} is set:
  119. send "&c&l《暗器連擲》&e冷卻中,請稍後再使用"
  120. stop
  121. set {冷卻.%player%::暗器連擲} to now
  122. send "&e你使用了&c&l《暗器連擲》"
  123. set {_particle暗器連擲1} to large smoke
  124. set {_particle暗器連擲2} to crit
  125. play raw sound "ambient.weather.thunder" at player with pitch 3 volume 2
  126. loop 8 times:
  127. set {_暗器連擲.1} to block above player#玩家自身座標
  128. set {_暗器連擲.2} to block 10 blocks in front player#玩家前方十格座標
  129. set {_x.1} to x-coordinate of {_暗器連擲.1}#玩家自身x座標
  130. set {_x.2} to x-coordinate of {_暗器連擲.2}#玩家前方十格x座標
  131. set {_y.1} to y-coordinate of {_暗器連擲.1}#玩家自身y座標
  132. set {_y.2} to y-coordinate of {_暗器連擲.2}#玩家前方十格y座標
  133. set {_z.1} to z-coordinate of {_暗器連擲.1}#玩家自身z座標
  134. set {_z.2} to z-coordinate of {_暗器連擲.2}#玩家前方十格z座標
  135. set {_x.difference} to ({_x.2} - {_x.1}) / 8#計算玩家自身與玩家前方十格 座標差 除以30次
  136. set {_y.difference} to ({_y.2} - {_y.1}) / 8#計算玩家自身與玩家前方十格 座標差 除以30次
  137. set {_z.difference} to ({_z.2} - {_z.1}) / 8#計算玩家自身與玩家前方十格 座標差 除以30次
  138. loop 8 times:#增加座標差30次
  139. increase x-coordinate of {_暗器連擲.1} by {_x.difference}#增加座標x差 1次
  140. increase y-coordinate of {_暗器連擲.1} by {_y.difference}#增加座標y差 1次
  141. increase z-coordinate of {_暗器連擲.1} by {_z.difference}#增加座標z差 1次
  142. spawn 40 of particle {_particle暗器連擲1} offset by 1, 1, -1 at location of {_暗器連擲.1}#特效
  143. spawn 40 of particle {_particle暗器連擲2} offset by 1, 1, -1 at location of {_暗器連擲.1}
  144. loop entities in radius 2 around block at location of {_暗器連擲.1}:#給予範圍傷
  145. if loop-entity isn't a player:
  146. make player damage loop-entity by {飾品狀態.%player%::敏捷} * 1.75 + {玩家資料.%player%::敏捷} * 1.75
  147. apply slowness 5 to the loop-entity for 5 ticks
  148. wait 1 ticks#給予時間差讓特效有慢慢跑的效果
  149. wait 10 ticks
  150. stop
  151. if "%{_技能}%" contains "龍神之箭":
  152. if difference between {冷卻.%player%::龍神之箭} and now is more than or equal to 14 second:
  153. delete {冷卻.%player%::龍神之箭}
  154. if {冷卻.%player%::龍神之箭} is set:
  155. send "&c&l《龍神之箭》&e冷卻中,請稍後再使用"
  156. stop
  157. set {冷卻.%player%::龍神之箭} to now
  158. send "&e你使用了&c&l《龍神之箭》"
  159. set {_particle龍神之箭1} to happy villager
  160. set {_particle龍神之箭2} to angry villager
  161. play raw sound "mob.enderdragon.end" at player with pitch 2 volume 1
  162. set {_龍神之箭.1} to block above player#玩家自身座標
  163. set {_龍神之箭.2} to block 15 blocks in front player#玩家前方十格座標
  164. set {_x.1} to x-coordinate of {_龍神之箭.1}#玩家自身x座標
  165. set {_x.2} to x-coordinate of {_龍神之箭.2}#玩家前方十格x座標
  166. set {_y.1} to y-coordinate of {_龍神之箭.1}#玩家自身y座標
  167. set {_y.2} to y-coordinate of {_龍神之箭.2}#玩家前方十格y座標
  168. set {_z.1} to z-coordinate of {_龍神之箭.1}#玩家自身z座標
  169. set {_z.2} to z-coordinate of {_龍神之箭.2}#玩家前方十格z座標
  170. set {_x.difference} to ({_x.2} - {_x.1}) / 40#計算玩家自身與玩家前方十格 座標差 除以30次
  171. set {_y.difference} to ({_y.2} - {_y.1}) / 40#計算玩家自身與玩家前方十格 座標差 除以30次
  172. set {_z.difference} to ({_z.2} - {_z.1}) / 40#計算玩家自身與玩家前方十格 座標差 除以30次
  173. loop 40 times:#增加座標差30次
  174. increase x-coordinate of {_龍神之箭.1} by {_x.difference}#增加座標x差 1次
  175. increase y-coordinate of {_龍神之箭.1} by {_y.difference}#增加座標y差 1次
  176. increase z-coordinate of {_龍神之箭.1} by {_z.difference}#增加座標z差 1次
  177. spawn 40 of particle {_particle龍神之箭1} offset by 0.1, 0.2, -0.1 at location of {_龍神之箭.1}#特效
  178. spawn 40 of particle {_particle龍神之箭2} offset by 0.1, 0.2, -0.1 at location of {_龍神之箭.1}
  179. loop entities in radius 2 around block at location of {_龍神之箭.1}:#給予範圍傷
  180. if loop-entity isn't a player:
  181. make player damage loop-entity by {飾品狀態.%player%::敏捷} * 6.5 + {玩家資料.%player%::敏捷} * 6.5
  182. thrust loop-entity backwards with force 2
  183. thrust loop-entity upwards with force 2
  184. wait 0.5 ticks#給予時間差讓特效有慢慢跑的效果
  185. wait 10 ticks
  186. stop
  187. if "%{_技能}%" contains "破風連攜":
  188. if difference between {冷卻.%player%::破風連攜} and now is more than or equal to 8 second:
  189. delete {冷卻.%player%::破風連攜}
  190. if {冷卻.%player%::破風連攜} is set:
  191. send "&c&l《破風連攜》&e冷卻中,請稍後再使用"
  192. stop
  193. set {冷卻.%player%::破風連攜} to now
  194. send "&e你使用了&c&l《破風連攜》"
  195. play raw sound "mob.creeper.death" at player with pitch 1 volume 2
  196. spawn 100 of particle spell offset by 2, 2, -2 at location of player
  197. thrust player backwards with force 1
  198. loop entities in radius 5 of player:
  199. if loop-entity isn't a player or a dropped item:
  200. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 4.75
  201. spawn 40 of particle cloud offset by 0.3, 1, -0.3 at location of loop-entity
  202. thrust loop-entity backwards with force 2
  203. stop
  204. if "%{_技能}%" contains "機械槍手":
  205. if difference between {冷卻.%player%::機械槍手} and now is more than or equal to 20 second:
  206. delete {冷卻.%player%::機械槍手}
  207. if {冷卻.%player%::機械槍手} is set:
  208. send "&c這項技能還在冷卻,請稍後在施放"
  209. stop
  210. set {冷卻.%player%::機械槍手} to now
  211. spawn a iron golem at location of player
  212. loop entities in radius 1 around player:
  213. if loop-entity is a iron golem:
  214. set name of loop-entity to "%player%的機械槍手"
  215. set {_die.%player%} to loop-entity
  216. set {_adadadad.%player%} to location of loop-entity
  217. apply resistance 5 to loop-entity for 30 seconds
  218. if {_die.%player%} is set:
  219. loop 30 times:
  220. loop entities in radius 25 around player:
  221. if name of loop-entity is "%player%的機械槍手":
  222. loop entities in radius 8 around loop-entity:
  223. if loop-entity-2 isn't a player:
  224. play raw sound "mob.zombie.metal" at {_die.%player%} with pitch 1 volume 0.5
  225. play raw sound "mob.zombie.remedy" at {_die.%player%} with pitch 1 volume 0.5
  226. make player damage loop-entity-2 by ({玩家資料.%attacker%::敏捷} + {飾品狀態.%attacker%::敏捷}) * 2.5
  227. wait 20 ticks
  228. loop 3 times:
  229. spawn 5 of particle large explode offset by 0, 0, 0 at {_die.%player%}
  230. kill {_die.%player%}
Add Comment
Please, Sign In to add comment