Advertisement
Hsuwan

Untitled

Oct 15th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.79 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 8 second:
  21. delete {冷卻.%player%::生靈塗炭}
  22. if {冷卻.%player%::生靈塗炭} is set:
  23. send "&c&l《生靈塗炭》&e冷卻中,請稍後再使用"
  24. stop
  25. send "&e你使用了&c&l《生靈塗炭》"
  26. play raw sound "liquid.splash" at player with pitch 2 volume 1
  27. loop entities in radius 5 of player:
  28. if loop-entity is targeted a entity:
  29. if loop-entity isn't a player or a dropped item:
  30. loop 2 times:
  31. set {冷卻.%player%::生靈塗炭} to now
  32. make player damage loop-entity by ({玩家資料.%player%::敏捷} * 7 + {飾品狀態.%player%::敏捷}) * 5.5
  33. apply slowness 10 to the loop-entity for 5 ticks
  34. spawn 20 of particle red dust offset by 0.3, 0.5, 0.3 at location of loop-entity
  35. play raw sound "mob.irongolem.hit" at player with pitch 0 volume 1
  36. wait 10 ticks
  37. if {冷卻.%player%::生靈塗炭} is set:
  38. stop
  39. send "&c&l《生靈塗炭》&7命中失敗。"
  40. stop
  41. if "%{_技能}%" contains "光速分弩雙擊":
  42. if difference between {冷卻.%player%::光速分弩雙擊} and now is more than or equal to 2 second:
  43. delete {冷卻.%player%::光速分弩雙擊}
  44. if {冷卻.%player%::光速分弩雙擊} is set:
  45. send "&c&l《光速分弩雙擊》&e冷卻中,請稍後再使用"
  46. stop
  47. set {冷卻.%player%::光速分弩雙擊} to now
  48. send "&e你使用了&c&l《光速分弩雙擊》"
  49. loop 2 times:
  50. set {_particle} to crit
  51. play raw sound "random.bow" at player with pitch 2 volume 1
  52. set {_光速分弩雙擊.1} to block above player#玩家自身座標
  53. set {_光速分弩雙擊.2} to block 30 blocks in front player#玩家前方十格座標
  54. set {_x.1} to x-coordinate of {_光速分弩雙擊.1}#玩家自身x座標
  55. set {_x.2} to x-coordinate of {_光速分弩雙擊.2}#玩家前方十格x座標
  56. set {_y.1} to y-coordinate of {_光速分弩雙擊.1}#玩家自身y座標
  57. set {_y.2} to y-coordinate of {_光速分弩雙擊.2}#玩家前方十格y座標
  58. set {_z.1} to z-coordinate of {_光速分弩雙擊.1}#玩家自身z座標
  59. set {_z.2} to z-coordinate of {_光速分弩雙擊.2}#玩家前方十格z座標
  60. set {_x.difference} to ({_x.2} - {_x.1}) / 25#計算玩家自身與玩家前方十格 座標差 除以30次
  61. set {_y.difference} to ({_y.2} - {_y.1}) / 25#計算玩家自身與玩家前方十格 座標差 除以30次
  62. set {_z.difference} to ({_z.2} - {_z.1}) / 25#計算玩家自身與玩家前方十格 座標差 除以30次
  63. loop 25 times:#增加座標差30次
  64. increase x-coordinate of {_光速分弩雙擊.1} by {_x.difference}#增加座標x差 1次
  65. increase y-coordinate of {_光速分弩雙擊.1} by {_y.difference}#增加座標y差 1次
  66. increase z-coordinate of {_光速分弩雙擊.1} by {_z.difference}#增加座標z差 1次
  67. spawn 2 of particle {_particle} offset by 0.1, 0.1, -0.1 at location of {_光速分弩雙擊.1}#特效
  68. loop entities in radius 2 around block at location of {_光速分弩雙擊.1}:#給予範圍傷
  69. make player damage loop-entity by {飾品狀態.%player%::敏捷} * 1.75 + {玩家資料.%player%::敏捷} * 1.75 * 7
  70. wait 0.1 ticks#給予時間差讓特效有慢慢跑的效果
  71. wait 10 ticks
  72. stop
  73. if "%{_技能}%" contains "閃電大奶奶":
  74. if difference between {冷卻.%player%::閃電大奶奶} and now is more than or equal to 10 second:
  75. delete {冷卻.%player%::閃電大奶奶}
  76. if {冷卻.%player%::閃電大奶奶} is set:
  77. send "&6&l《閃電大奶奶》&f沒有力氣了,請在等一下!"
  78. stop
  79. set {冷卻.%player%::閃電大奶奶} to now
  80. send "&b你發射了&6&l《閃電大奶奶》"
  81. play raw sound "random.bow" at player with pitch 0 volume 1
  82. loop entities in radius 5 of player:
  83. if loop-entity isn't a player or a dropped item:
  84. thrust loop-entity upwards with force 2
  85. wait 10 ticks
  86. set {_閃電大奶奶} to block 10 blocks above player
  87. loop entities in radius 8 around block at location of {_閃電大奶奶}:
  88. if loop-entity isn't a player or a dropped item:
  89. strike lightning effect at the loop-entity
  90. ignite the loop-entity for 5 second
  91. thrust loop-entity backwards with force 1
  92. make player damage loop-entity by 5487
  93. stop
  94. if "%{_技能}%" contains "詛咒的安眠曲":
  95. if difference between {冷卻.%player%::詛咒的安眠曲} and now is more than or equal to 60 second:
  96. delete {冷卻.%player%::詛咒的安眠曲}
  97. if {冷卻.%player%::詛咒的安眠曲} is set:
  98. send "&c&l《詛咒的安眠曲》&e冷卻中,請稍後再使用"
  99. stop
  100. set {冷卻.%player%::詛咒的安眠曲} to now
  101. send "&e你使用了&c&l《詛咒的安眠曲》"
  102. play raw sound "mob.wither.shoot" at player with pitch 2 volume 1
  103. loop 120 times:
  104. loop entities in radius 5 of player:
  105. if loop-entity isn't a player or a dropped item:
  106. make player damage loop-entity by ({玩家資料.%player%::智慧} * 7 + {飾品狀態.%player%::智慧}) * 1.75
  107. spawn 60 of particle smoke offset by 3, 4, -3 at location of player
  108. wait 10 ticks
  109. stop
  110. if "%{_技能}%" contains "精靈的嘉年華曲":
  111. if difference between {冷卻.%player%::精靈的嘉年華曲} and now is more than or equal to 30 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. play raw sound "mob.cat.meow" at player with pitch 2 volume 1
  119. apply jump boost 5 to the player for 60 second
  120. loop entities in radius 10 of player:
  121. if loop-entity is a player:
  122. apply jump boost 5 to the loop-entity for 60 second
  123. apply regeneration 1 to the loop-entity for 60 second
  124. spawn 85 of particle note offset by 3, 4, -3 at location of player
  125. stop
  126. if "%{_技能}%" contains "神聖光環":
  127. if difference between {冷卻.%player%::神聖光環} and now is more than or equal to 30 second:
  128. delete {冷卻.%player%::神聖光環}
  129. if {冷卻.%player%::神聖光環} is set:
  130. send "&c&l《神聖光環》&e冷卻中,請稍後再使用"
  131. stop
  132. set {冷卻.%player%::神聖光環} to now
  133. send "&e你使用了&c&l《神聖光環》"
  134. loop 30 times:
  135. play raw sound "random.anvil_land" at player with pitch 1 volume 0.5
  136. heal player by (({玩家資料.%player%::智慧} * 7 + {飾品狀態.%player%::智慧}) * 0.04) / (player's max health + {飾品狀態.%player%::血量增加}) * player's max health
  137. spawn 10 of particle spell offset by 2, 4, -2 at location of player
  138. loop entities in radius 3 of player:
  139. if loop-entity is a player:
  140. heal loop-entity by (({玩家資料.%player%::智慧} * 7 + {飾品狀態.%player%::智慧}) * 0.05) / (loop-entity's max health + {飾品狀態.%loop-entity%::血量增加}) * loop-entity's max health
  141. spawn 10 of particle spell offset by 2, 1, -2 at location of loop-entity
  142. wait 20 ticks
  143. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement