Hsuwan

Untitled

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