Advertisement
Hsuwan

Untitled

Sep 15th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.66 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 16 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 2
  28. thrust player upwards with force 1
  29. wait 20 ticks
  30. thrust player downwards with force 1
  31. wait 10 ticks
  32. spawn 50 of particle angry villager offset by 3, 0.5, -3 at location of player
  33. loop entities in radius 6 of player:
  34. if loop-entity isn't a player:
  35. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 3.5 + ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.0
  36. apply slowness 10 to the loop-entity for 3 seconds
  37. spawn 10 of particle witch magic offset by 0.2, 1, -0.2 at location of loop-entity
  38. thrust loop-entity backwards with force 1
  39. wait 10 ticks
  40. thrust player backwards with force 1
  41. stop
  42. if "%{_技能}%" contains "萬箭制裁":
  43. if difference between {冷卻.%player%::萬箭制裁} and now is more than or equal to 12 second:
  44. delete {冷卻.%player%::萬箭制裁}
  45. if {冷卻.%player%::萬箭制裁} is set:
  46. send "&c&l《萬箭制裁》&e冷卻中,請稍後再使用"
  47. stop
  48. send "&e你使用了&c&l《萬箭制裁》"
  49. set {冷卻.%player%::萬箭制裁} to now
  50. loop blocks in radius 20 of player:
  51. if targeted block is loop-block:
  52. set {_萬箭制裁位置} to location of loop-block
  53. loop 5 times:
  54. loop entities in radius 6 around location of block at {_萬箭制裁位置}:
  55. if loop-entity isn't a player:
  56. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 0.6
  57. push the loop-entity downwards with force 0.2
  58. play raw sound "mob.wither.death" at loop-entity with pitch 2 volume 0.2
  59. spawn 30 of particle smoke offset by -4, 3, 4 at location of {_萬箭制裁位置}
  60. spawn 40 of particle crit offset by 0, 8, 0 at location of loop-entity
  61. wait 12 ticks
  62. delete {_萬箭制裁位置}
  63. stop
  64. if "%{_技能}%" contains "熾炎爆裂":
  65. if {玩家資料.%player%::等級} is more than or equal to 70:
  66. if difference between {冷卻.%player%::熾炎爆裂} and now is more than or equal to 8 second:
  67. delete {冷卻.%player%::熾炎爆裂}
  68. if {冷卻.%player%::熾炎爆裂} is set:
  69. send "&c&l《熾炎爆裂》&e冷卻中,請稍後再使用"
  70. stop
  71. set {冷卻.%player%::熾炎爆裂} to now
  72. send "&e你使用了&c&l《熾炎爆裂》"
  73. set {_熾炎爆裂} to block 4 blocks in front player
  74. play raw sound "liquid.lavapop" at player with pitch 1 volume 2
  75. loop entities in radius 4 around block at location of {_熾炎爆裂}:
  76. if loop-entity isn't a player or a dropped item:
  77. spawn 4 of particle flame offset by 3, 3, -3 at location of {_熾炎爆裂}
  78. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.8
  79. thrust loop-entity upwards with force 0.4
  80. wait 10 ticks
  81. loop entities in radius 5 around block at location of {_熾炎爆裂}:
  82. if loop-entity isn't a player or a dropped item:
  83. spawn 1 of particle huge explosion offset by 0.1, 0.1, 0.1 at location of loop-entity
  84. ignite the loop-entity for 5 second
  85. play raw sound "fireworks.largeBlast1" at player with pitch 1 volume 2
  86. spawn 40 of particle drip lava offset by 3, 5, -3 at location of {_熾炎爆裂}
  87. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 3.5
  88. stop
  89. if "%{_技能}%" contains "魔天一擊":
  90. if {玩家資料.%player%::等級} is more than or equal to 70:
  91. if difference between {冷卻.%player%::魔天一擊} and now is more than or equal to 6 second:
  92. delete {冷卻.%player%::魔天一擊}
  93. if {冷卻.%player%::魔天一擊} is set:
  94. send "&c&l《魔天一擊》&e冷卻中,請稍後再使用"
  95. stop
  96. set {冷卻.%player%::魔天一擊} to now
  97. send "&e你使用了&c&l《魔天一擊》"
  98. apply slowness 10 to the player for 10 ticks
  99. play raw sound "mob.blaze.death" at player with pitch 2 volume 1
  100. wait 10 ticks
  101. loop entities in radius 5 of player:
  102. if loop-entity is targeted a entity:
  103. if loop-entity isn't a player:
  104. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 2.5 + ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 3.5
  105. thrust loop-entity backwards with force 0.6
  106. spawn 30 of particle magic crit offset by 0.3, 0.3, 0.3 at location of loop-entity
  107. spawn 30 of particle witch magic offset by 0.1, 1, -0.1 at location of loop-entity
  108. play raw sound "mob.blaze.death" at player with pitch 0 volume 1
  109. stop
  110. if "%{_技能}%" contains "無雙扇形斬":
  111. if difference between {冷卻.%player%::無雙扇形斬} and now is more than or equal to 4 second:
  112. delete {冷卻.%player%::無雙扇形斬}
  113. if {冷卻.%player%::無雙扇形斬} is set:
  114. send "&c&l《無雙扇形斬》&e冷卻中,請稍後再使用"
  115. stop
  116. set {冷卻.%player%::無雙扇形斬} to now
  117. send "&e你使用了&c&l《無雙扇形斬》"
  118. set {_無雙扇形斬} to block 4 blocks in front player
  119. play raw sound "mob.bat.takeoff" at player with pitch 2 volume 2
  120. loop entities in radius 4 around block at location of {_無雙扇形斬}:
  121. if loop-entity isn't a player or a dropped item:
  122. spawn 25 of particle crit offset by 3, 0.1, -3 at location of {_無雙扇形斬}
  123. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.8
  124. thrust loop-entity upwards with force 0.2
  125. wait 20 ticks
  126. loop entities in radius 5 around block at location of {_無雙扇形斬}:
  127. if loop-entity isn't a player or a dropped item:
  128. play raw sound "mob.bat.takeoff" at player with pitch 1 volume 2
  129. spawn 25 of particle crit offset by 3, 0.1, -3 at location of {_無雙扇形斬}
  130. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 2.5
  131. thrust loop-entity backwards with force 0.4
  132. stop
  133. if "%{_技能}%" contains "劍氣突進":
  134. if difference between {冷卻.%player%::劍氣突進} and now is more than or equal to 1 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.enderdragon.wings" at player with pitch 2 volume 2
  142. spawn 25 of particle red dust offset by 0.3, 0.6, -0.3 at location of player
  143. thrust player forwards with force 1.2
  144. thrust player upwards with force 0.3
  145. stop
  146. if "%{_技能}%" contains "龍神槍刺擊":
  147. if difference between {冷卻.%player%::龍神槍刺擊} and now is more than or equal to 1 second:
  148. delete {冷卻.%player%::龍神槍刺擊}
  149. if {冷卻.%player%::龍神槍刺擊} is set:
  150. send "&c&l《龍神槍刺擊》&e冷卻中,請稍後再使用"
  151. stop
  152. set {冷卻.%player%::龍神槍刺擊} to now
  153. send "&e你使用了&c&l《龍神槍刺擊》"
  154. set {_particle} to fireworks spark
  155. play raw sound "mob.enderdragon.hit" at player with pitch 2 volume 1
  156. set {_龍神槍刺擊.1} to block above player#玩家自身座標
  157. set {_龍神槍刺擊.2} to block 8 blocks in front player#玩家前方十格座標
  158. set {_x.1} to x-coordinate of {_龍神槍刺擊.1}#玩家自身x座標
  159. set {_x.2} to x-coordinate of {_龍神槍刺擊.2}#玩家前方十格x座標
  160. set {_y.1} to y-coordinate of {_龍神槍刺擊.1}#玩家自身y座標
  161. set {_y.2} to y-coordinate of {_龍神槍刺擊.2}#玩家前方十格y座標
  162. set {_z.1} to z-coordinate of {_龍神槍刺擊.1}#玩家自身z座標
  163. set {_z.2} to z-coordinate of {_龍神槍刺擊.2}#玩家前方十格z座標
  164. set {_x.difference} to ({_x.2} - {_x.1}) / 10#計算玩家自身與玩家前方十格 座標差 除以30次
  165. set {_y.difference} to ({_y.2} - {_y.1}) / 10#計算玩家自身與玩家前方十格 座標差 除以30次
  166. set {_z.difference} to ({_z.2} - {_z.1}) / 10#計算玩家自身與玩家前方十格 座標差 除以30次
  167. loop 10 times:#增加座標差30次
  168. increase x-coordinate of {_龍神槍刺擊.1} by {_x.difference}#增加座標x差 1次
  169. increase y-coordinate of {_龍神槍刺擊.1} by {_y.difference}#增加座標y差 1次
  170. increase z-coordinate of {_龍神槍刺擊.1} by {_z.difference}#增加座標z差 1次
  171. spawn 4 of particle {_particle} offset by 0.2, 0.3, -0.2 at location of {_龍神槍刺擊.1}#特效
  172. loop entities in radius 2 around block at location of {_龍神槍刺擊.1}:#給予範圍傷
  173. make player damage loop-entity by {飾品狀態.%player%::力量} * 1.8 + {玩家資料.%player%::力量} * 1.8 + {飾品狀態.%player%::敏捷} * 0.5 + {玩家資料.%player%::敏捷} * 0.5
  174. wait 0.1 ticks#給予時間差讓特效有慢慢跑的效果
  175. heal player by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.05) / (player's max health + {飾品狀態.%player%::血量增加}) * player's max health
  176. stop
  177. if "%{_技能}%" contains "聖光裁決":
  178. if {玩家資料.%player%::等級} is more than or equal to 70:
  179. if difference between {冷卻.%player%::聖光裁決} and now is more than or equal to 3 second:
  180. delete {冷卻.%player%::聖光裁決}
  181. if {冷卻.%player%::聖光裁決} is set:
  182. send "&c&l《聖光裁決》&e冷卻中,請稍後再使用"
  183. stop
  184. set {冷卻.%player%::聖光裁決} to now
  185. send "&e你使用了&c&l《聖光裁決》"
  186. play raw sound "mob.zombie.unfect" at player with pitch 1 volume 1
  187. heal player by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.05) / (player's max health + {飾品狀態.%player%::血量增加}) * player's max health
  188. send "&e你已被 %player% 的&c&l《聖光裁決》&e治療了" to player
  189. spawn 15 of particle heart offset by 0.1, 0.5, 0.1 at location of player
  190. loop entities in radius 7 of player:
  191. if loop-entity is a player:
  192. heal loop-entity by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.05) / (loop-entity's max health + {飾品狀態.%loop-entity%::血量增加}) * loop-entity's max health
  193. spawn 35 of particle heart offset by 0.1, 0.5, 0.1 at location of loop-entity
  194. send "&e你已被 %player% 的&c&l《聖光裁決》&e治療了" to loop-entity
  195. else:
  196. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 2.2 + ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 1.5
  197. spawn 35 of particle spell offset by 0.1, 0.5, 0.1 at location of loop-entity
  198. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement