Advertisement
Hsuwan

Untitled

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