Hsuwan

Untitled

Sep 2nd, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.99 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 4 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. play raw sound "mob.ghast.scream" at player with pitch 1 volume 1
  28. spawn 150 of particle witch magic offset by 3, 2, -3 at location of player
  29. heal player by 0.5
  30. loop entities in radius 7 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%::智慧}) * 3.2
  34. spawn 40 of particle portal offset by 5, 0, -0.5 at location of loop-entity
  35. stop
  36. if "%{_技能}%" contains "龍之吐息":
  37. if {玩家資料.%player%::等級} is more than or equal to 120:
  38. if difference between {冷卻.%player%::龍之吐息} and now is more than or equal to 7 second:
  39. delete {冷卻.%player%::龍之吐息}
  40. if {冷卻.%player%::龍之吐息} is set:
  41. send "&c&l《龍之吐息》&e冷卻中,請稍後再使用"
  42. stop
  43. set {冷卻.%player%::龍之吐息} to now
  44. send "&e你使用了&c&l《龍之吐息》"
  45. heal player by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.04) / (player's max health + {飾品狀態.%player%::血量增加}) * player's max health
  46. set {_particle龍之吐息} to witch magic
  47. play raw sound "mob.enderdragon.growl" at player with pitch 2 volume 2
  48. set {_龍之吐息.1} to block above player#玩家自身座標
  49. set {_龍之吐息.2} to block 10 blocks in front player#玩家前方十格座標
  50. set {_x.1} to x-coordinate of {_龍之吐息.1}#玩家自身x座標
  51. set {_x.2} to x-coordinate of {_龍之吐息.2}#玩家前方十格x座標
  52. set {_y.1} to y-coordinate of {_龍之吐息.1}#玩家自身y座標
  53. set {_y.2} to y-coordinate of {_龍之吐息.2}#玩家前方十格y座標
  54. set {_z.1} to z-coordinate of {_龍之吐息.1}#玩家自身z座標
  55. set {_z.2} to z-coordinate of {_龍之吐息.2}#玩家前方十格z座標
  56. set {_x.difference} to ({_x.2} - {_x.1}) / 10#計算玩家自身與玩家前方十格 座標差 除以30次
  57. set {_y.difference} to ({_y.2} - {_y.1}) / 10#計算玩家自身與玩家前方十格 座標差 除以30次
  58. set {_z.difference} to ({_z.2} - {_z.1}) / 10#計算玩家自身與玩家前方十格 座標差 除以30次
  59. loop 10 times:#增加座標差30次
  60. increase x-coordinate of {_龍之吐息.1} by {_x.difference}#增加座標x差 1次
  61. increase y-coordinate of {_龍之吐息.1} by {_y.difference}#增加座標y差 1次
  62. increase z-coordinate of {_龍之吐息.1} by {_z.difference}#增加座標z差 1次
  63. spawn 40 of particle {_particle龍之吐息} offset by 1, 1, -1 at location of {_龍之吐息.1}#特效
  64. loop entities in radius 3 around block at location of {_龍之吐息.1}:#給予範圍傷
  65. make player damage loop-entity by {飾品狀態.%player%::智慧} * 1.8 + {玩家資料.%player%::智慧} * 1.8
  66. wait 10 ticks#給予時間差讓特效有慢慢跑的效果
  67. wait 10 ticks
  68. stop
  69. if "%{_技能}%" contains "空間撕裂":
  70. if difference between {冷卻.%player%::空間撕裂} and now is more than or equal to 12 second:
  71. delete {冷卻.%player%::空間撕裂}
  72. if {冷卻.%player%::空間撕裂} is set:
  73. send "&6&l《空間撕裂》&e冷卻中,請稍後再使用"
  74. stop
  75. set {冷卻.%player%::空間撕裂} to now
  76. send "&b你發射了&6&l《空間撕裂》"
  77. loop entities in radius 6 of player:
  78. if loop-entity isn't a player or a dropped item:
  79. apply invisibility 1 to the loop-entity for 2 second
  80. play raw sound "mob.creeper.death" at player with pitch 0 volume 2
  81. spawn 60 of particle mob spell offset by 3, 0.3, -3 at location of player
  82. wait 10 ticks
  83. loop entities in radius 6 of player:
  84. if loop-entity isn't a player or a dropped item:
  85. play raw sound "mob.enderdragon.wings" at player with pitch 1 volume 2
  86. spawn 40 of particle spell offset by 1, 0.6, -1 at location of loop-entity
  87. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.2
  88. wait 10 ticks
  89. loop entities in radius 6 of player:
  90. if loop-entity isn't a player or a dropped item:
  91. play raw sound "mob.enderdragon.wings" at player with pitch 1 volume 2
  92. spawn 40 of particle spell offset by 1, 0.6, -1 at location of loop-entity
  93. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.2
  94. wait 20 ticks
  95. loop entities in radius 6 of player:
  96. if loop-entity isn't a player or a dropped item:
  97. play raw sound "mob.blaze.death" at player with pitch 1 volume 2
  98. spawn 50 of particle mob spell offset by 1, 0.6, -1 at location of loop-entity
  99. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 3
  100. stop
  101. if "%{_技能}%" contains "龍咆哮":
  102. if {玩家資料.%player%::等級} is more than or equal to 120:
  103. if difference between {冷卻.%player%::龍咆哮} and now is more than or equal to 3 second:
  104. delete {冷卻.%player%::龍咆哮}
  105. if {冷卻.%player%::龍咆哮} is set:
  106. send "&c&l《龍咆哮》&e冷卻中,請稍後再使用"
  107. stop
  108. set {冷卻.%player%::龍咆哮} to now
  109. send "&e你使用了&c&l《龍咆哮》"
  110. play raw sound "mob.enderdragon.growl" at player with pitch 2 volume 2
  111. spawn 80 of particle witch magic offset by 1, 1, -1 at location of player
  112. damage player by 4
  113. loop entities in radius 9 of player:
  114. if loop-entity isn't a player or a dropped item:
  115. make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 4
  116. spawn 40 of particle red dust offset by 0.3, 1, -0.3 at location of loop-entity
  117. stop
  118. if "%{_技能}%" contains "神光護體":
  119. if {玩家資料.%player%::等級} is more than or equal to 120:
  120. if difference between {冷卻.%player%::神光護體} and now is more than or equal to 30 second:
  121. delete {冷卻.%player%::神光護體}
  122. if {冷卻.%player%::神光護體} is set:
  123. send "&c&l《神光護體》&e冷卻中,請稍後再使用"
  124. stop
  125. set {冷卻.%player%::神光護體} to now
  126. send "&e你使用了&c&l《神光護體》"
  127. play raw sound "mob.bat.death" at player with pitch 2 volume 2
  128. spawn 60 of particle fireworks spark offset by 3, 4, -3 at location of player
  129. loop 60 times:
  130. spawn 60 of particle spell offset by 3, 4, -3 at location of player
  131. loop entities in radius 3 of player:
  132. if loop-entity isn't a player or a dropped item:
  133. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.8 + ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 0.65
  134. thrust loop-entity backwards with force 1
  135. thrust loop-entity upwards with force 0.5
  136. wait 10 ticks
  137. stop
  138. if "%{_技能}%" contains "影噬之劍":
  139. if difference between {冷卻.%player%::影噬之劍} and now is more than or equal to 15 second:
  140. delete {冷卻.%player%::影噬之劍}
  141. if {冷卻.%player%::影噬之劍} is set:
  142. send "&c&l《影噬之劍》&e冷卻中,請稍後再使用"
  143. stop
  144. send "&e你使用了&c&l《影噬之劍》"
  145. play raw sound "mob.wither.spawn" at player with pitch 1 volume 1
  146. loop entities in radius 20 of player:
  147. if loop-entity is targeted a entity:
  148. if loop-entity isn't a player:
  149. set {冷卻.%player%::影噬之劍} to now
  150. loop 5 times:
  151. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 0.8
  152. apply slowness 3 to the loop-entity for 10 ticks
  153. spawn 100 of particle smoke offset by 1, 2, -1 at location of loop-entity
  154. play raw sound "mob.endermen.hit" at player with pitch 1 volume 1
  155. wait 10 ticks
  156. make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 3.5
  157. spawn 100 of particle explode offset by 1, 2, -1 at location of loop-entity
  158. play raw sound "mob.endermen.portal" at player with pitch 1 volume 1
  159. if {冷卻.%player%::影噬之劍} is set:
  160. stop
  161. send "&c&l《影噬之劍》&7命中失敗。"
  162. stop
  163. if "%{_技能}%" contains "護佑之盾":
  164. if {玩家資料.%player%::等級} is more than or equal to 120:
  165. if difference between {冷卻.%player%::護佑之盾} and now is more than or equal to 20 second:
  166. delete {冷卻.%player%::護佑之盾}
  167. if {冷卻.%player%::護佑之盾} is set:
  168. send "&c&l《護佑之盾》&e冷卻中,請稍後再使用"
  169. stop
  170. set {冷卻.%player%::護佑之盾} to now
  171. send "&e你使用了&c&l《護佑之盾》"
  172. play raw sound "mob.irongolem.death" at player with pitch 2 volume 2
  173. spawn 150 of particle enchantment table offset by 4, 4, -4 at location of player
  174. apply absorption 3 to player for 20 seconds
  175. loop entities in radius 5 of player:
  176. if loop-entity is a player:
  177. apply absorption 3 to the loop-entity for 20 seconds
  178. stop
  179. if "%{_技能}%" contains "魔劍激發":
  180. if difference between {冷卻.%player%::魔劍激發} and now is more than or equal to 20 second:
  181. delete {冷卻.%player%::魔劍激發}
  182. if {冷卻.%player%::魔劍激發} is set:
  183. send "&c&l《魔劍激發》&e冷卻中,請稍後再使用"
  184. stop
  185. set {冷卻.%player%::魔劍激發} to now
  186. set {魔劍激發.%player%} to now
  187. send "&e你使用了&c&l《魔劍激發》"
  188. play raw sound "mob.endermen.death" at player with pitch 1 volume 2
  189. spawn 60 of particle witch magic offset by 0, 6, 0 at player
  190. spawn 50 of particle magic crit offset by 2, 3, -2 at player
  191. stop
  192. on damage:
  193. if {魔劍激發.%attacker%} is set:
  194. if difference between {魔劍激發.%attacker%} and now is more than or equal to 20 seconds:
  195. delete {魔劍激發.%attacker%}
  196. increase damage by ({玩家資料.%attacker%::智慧} + {飾品狀態.%attacker%::智慧}) * 0.25
  197. if attacker isn't a player:
  198. stop
  199. if damage is more than or equal to 0.1:
  200. play raw sound "mob.enderdragon.hit" at victim with pitch 2 volume 1
Add Comment
Please, Sign In to add comment