Hsuwan

Untitled

Sep 2nd, 2017
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.01 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 3 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 10 ticks
  28. play raw sound "mob.wither.shoot" at player with pitch 2 volume 1
  29. spawn 60 of particle drip lava offset by 1, 2, -1 at location of player
  30. loop entities in radius 10 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.5
  34. spawn 50 of particle flame offset by 0.5, 4, -0.5 at location of loop-entity
  35. spawn 50 of particle large smoke offset by 0.5, 4, -0.5 at location of loop-entity
  36. ignite loop-entity for 20 ticks
  37. stop
  38. if "%{_技能}%" contains "暴風雪":
  39. if difference between {冷卻.%player%::暴風雪} and now is more than or equal to 3 second:
  40. delete {冷卻.%player%::暴風雪}
  41. if {冷卻.%player%::暴風雪} is set:
  42. send "&c&l《暴風雪》&e冷卻中,請稍後再使用"
  43. stop
  44. send "&e你使用了&c&l《暴風雪》"
  45. set {冷卻.%player%::暴風雪} to now
  46. play raw sound "mob.wither.death" at player with pitch 0 volume 1
  47. spawn 60 of particle drip water offset by 1, 2, -1 at location of player
  48. apply slowness 10 to the player for 10 ticks
  49. loop entities in radius 10 of player:
  50. if loop-entity isn't a player or a dropped item:
  51. set {冷卻.%player%::暴風雪} to now
  52. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 3
  53. spawn 50 of particle snowball poof offset by 0.5, 4, -0.5 at location of loop-entity
  54. spawn 50 of particle cloud offset by 0.5, 4, -0.5 at location of loop-entity
  55. apply slowness 3 to the loop-entity for 20 ticks
  56. stop
  57. if "%{_技能}%" contains "天怒":
  58. if difference between {冷卻.%player%::天怒} and now is more than or equal to 5 second:
  59. delete {冷卻.%player%::天怒}
  60. if {冷卻.%player%::天怒} is set:
  61. send "&c&l《天怒》&e冷卻中,請稍後再使用"
  62. stop
  63. send "&e你使用了&c&l《天怒》"
  64. set {冷卻.%player%::天怒} to now
  65. play raw sound "mob.zombie.unfect" at player with pitch 2 volume 1
  66. spawn 60 of particle spell offset by 1, 2, -1 at location of player
  67. heal player by 4
  68. send "&e你已被 %player% 的&c&l《天怒》&e治療了" to loop-entity
  69. apply slowness 10 to the player for 10 ticks
  70. loop entities in radius 10 of player:
  71. if loop-entity isn't a player or a dropped item:
  72. set {冷卻.%player%::天怒} to now
  73. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 3.5
  74. spawn 65 of particle fireworks spark offset by 0.5, 4, -0.5 at location of loop-entity
  75. spawn 10 of particle angry villager offset by 0.5, 4, -0.5 at location of loop-entity
  76. apply slowness 3 to the loop-entity for 20 ticks
  77. stop
  78. if "%{_技能}%" contains "電磁砲":
  79. if difference between {冷卻.%player%::電磁砲} and now is more than or equal to 12 second:
  80. delete {冷卻.%player%::電磁砲}
  81. if {冷卻.%player%::電磁砲} is set:
  82. send "&c&l《電磁砲》&e冷卻中,請稍後再使用"
  83. stop
  84. set {冷卻.%player%::電磁砲} to now
  85. send "&e你使用了&c&l《電磁砲》"
  86. set {_particle電磁砲} to magic crit
  87. play raw sound "ambient.weather.thunder" at player with pitch 3 volume 2
  88. set {_電磁砲.1} to block above player#玩家自身座標
  89. set {_電磁砲.2} to block 25 blocks in front player#玩家前方十格座標
  90. set {_x.1} to x-coordinate of {_電磁砲.1}#玩家自身x座標
  91. set {_x.2} to x-coordinate of {_電磁砲.2}#玩家前方十格x座標
  92. set {_y.1} to y-coordinate of {_電磁砲.1}#玩家自身y座標
  93. set {_y.2} to y-coordinate of {_電磁砲.2}#玩家前方十格y座標
  94. set {_z.1} to z-coordinate of {_電磁砲.1}#玩家自身z座標
  95. set {_z.2} to z-coordinate of {_電磁砲.2}#玩家前方十格z座標
  96. set {_x.difference} to ({_x.2} - {_x.1}) / 40#計算玩家自身與玩家前方十格 座標差 除以30次
  97. set {_y.difference} to ({_y.2} - {_y.1}) / 40#計算玩家自身與玩家前方十格 座標差 除以30次
  98. set {_z.difference} to ({_z.2} - {_z.1}) / 40#計算玩家自身與玩家前方十格 座標差 除以30次
  99. loop 40 times:#增加座標差30次
  100. increase x-coordinate of {_電磁砲.1} by {_x.difference}#增加座標x差 1次
  101. increase y-coordinate of {_電磁砲.1} by {_y.difference}#增加座標y差 1次
  102. increase z-coordinate of {_電磁砲.1} by {_z.difference}#增加座標z差 1次
  103. spawn 40 of particle {_particle電磁砲} offset by 1, 1, -1 at location of {_電磁砲.1}#特效
  104. loop entities in radius 3 around block at location of {_電磁砲.1}:#給予範圍傷
  105. make player damage loop-entity by {飾品狀態.%player%::智慧} * 6 + {玩家資料.%player%::智慧} * 6
  106. apply slowness 5 to the loop-entity for 5 ticks
  107. wait 1 ticks#給予時間差讓特效有慢慢跑的效果
  108. stop
  109. if "%{_技能}%" contains "毒霧擴散":
  110. if difference between {冷卻.%player%::毒霧擴散} and now is more than or equal to 10 second:
  111. delete {冷卻.%player%::毒霧擴散}
  112. if {冷卻.%player%::毒霧擴散} is set:
  113. send "&6&l《毒霧擴散》&e冷卻中,請稍後再使用"
  114. stop
  115. set {冷卻.%player%::毒霧擴散} to now
  116. send "&b你發射了&6&l《毒霧擴散》"
  117. set {_毒霧擴散} at location of player
  118. loop 20 times:
  119. loop entities in radius 6 of player:
  120. if loop-entity isn't a player or a dropped item:
  121. apply slowness 1 to the loop-entity for 10 ticks
  122. play raw sound "mob.magmacube.jump" at player with pitch 1 volume 1
  123. make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 1.25
  124. spawn 100 of particle happy villager offset by 4, 2, -4 at location of {_毒霧擴散}
  125. wait 10 ticks
  126. stop
  127. if "%{_技能}%" contains "虔誠奉獻":
  128. if difference between {冷卻.%player%::虔誠奉獻} and now is more than or equal to 5 second:
  129. delete {冷卻.%player%::虔誠奉獻}
  130. if {冷卻.%player%::虔誠奉獻} is set:
  131. send "&c&l《虔誠奉獻》&e冷卻中,請稍後再使用"
  132. stop
  133. set {冷卻.%player%::虔誠奉獻} to now
  134. send "&e你使用了&c&l《虔誠奉獻》"
  135. play raw sound "random.levelup" at player with pitch 2 volume 2
  136. spawn 60 of particle happy villager offset by 3, 4, -3 at location of player
  137. damage player by 5
  138. loop entities in radius 5 of player:
  139. if loop-entity isn't a player or a dropped item:
  140. heal loop-entity by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.15) / (loop-entity's max health + {飾品狀態.%loop-entity%::血量增加}) * loop-entity's max health#治癒量/ 血量公式
  141. send "&e你已被 %player% 的&c&l《虔誠奉獻》&e治療了" to loop-entity
  142. spawn 30 of particle heart offset by 1, 1, -1 at location of loop-entity
  143. stop
  144. if "%{_技能}%" contains "戰舞曲":
  145. if difference between {冷卻.%player%::戰舞曲} and now is more than or equal to 20 second:
  146. delete {冷卻.%player%::戰舞曲}
  147. if {冷卻.%player%::戰舞曲} is set:
  148. send "&c&l《戰舞曲》&e冷卻中,請稍後再使用"
  149. stop
  150. set {冷卻.%player%::戰舞曲} to now
  151. send "&e你使用了&c&l《戰舞曲》"
  152. play raw sound "mob.cow.hurt" at player with pitch 2 volume 2
  153. spawn 150 of particle red dust offset by 4, 4, -4 at location of player
  154. loop entities in radius 5 of player:
  155. if loop-entity is a player:
  156. send "&e你已被 %player% 的&6&l《戰舞曲》&e提升能力了" to loop-entity
  157. apply speed 2 to loop-entity for 20 seconds
  158. apply haste 2 to loop-entity for 20 seconds
  159. apply resistance 1 to loop-entity for 20 seconds
  160. stop
  161. if "%{_技能}%" contains "行軍曲":
  162. if difference between {冷卻.%player%::行軍曲} and now is more than or equal to 20 second:
  163. delete {冷卻.%player%::行軍曲}
  164. if {冷卻.%player%::行軍曲} is set:
  165. send "&c&l《行軍曲》&e冷卻中,請稍後再使用"
  166. stop
  167. set {冷卻.%player%::行軍曲} to now
  168. send "&e你使用了&c&l《行軍曲》"
  169. loop entities in radius 5 of player:
  170. if loop-entity is a player:
  171. play raw sound "mob.skeleton.death" at player with pitch 2 volume 2
  172. spawn 50 of particle happy villager offset by 2, 3, -2 at player
  173. set {冷卻.%loop-entity%::行軍曲} to now
  174. send "&e你已被 %player% 的&6&l《行軍曲》&e提升能力了" to loop-entity
  175. stop
  176. on damage:
  177. if {冷卻.%player%::行軍曲} is set:
  178. if difference between {冷卻.%player%::行軍曲} and now is more than or equal to 20 seconds:
  179. delete {冷卻.%player::行軍曲}
  180. increase damage by ({玩家資料.%attacker%::智慧} + {飾品狀態.%attacker%::智慧} + {玩家資料.%attacker%::力量} + {飾品狀態.%attacker%::力量} + {玩家資料.%attacker%::敏捷} + {飾品狀態.%attacker%::敏捷}) * 0.15
  181. if attacker isn't a player:
  182. stop
  183. if damage is more than or equal to 0.1:
  184. play raw sound "mob.enderdragon.hit" at victim with pitch 2 volume 1
Add Comment
Please, Sign In to add comment