Hsuwan

Untitled

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