Advertisement
Hsuwan

Untitled

Dec 8th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 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 {玩家資料.%player%::等級} is more than or equal to 170:
  21. if difference between {冷卻.%player%::聖誕糖果蹦} and now is more than or equal to 1 second:
  22. delete {冷卻.%player%::聖誕糖果蹦}
  23. if {冷卻.%player%::聖誕糖果蹦} is set:
  24. send "&c&l《聖誕糖果蹦》&e冷卻中,請稍後再使用"
  25. stop
  26. set {冷卻.%player%::聖誕糖果蹦} to now
  27. send "&e你使用了&c&l《聖誕糖果蹦》"
  28. set {_particle1} to red dust
  29. set {_particle2} to cloud
  30. play raw sound "random.explode" at player with pitch 1 volume 2
  31. set {_聖誕糖果蹦.1} to block above player#玩家自身座標
  32. set {_聖誕糖果蹦.2} to block 15 blocks in front player#玩家前方十格座標
  33. set {_x.1} to x-coordinate of {_聖誕糖果蹦.1}#玩家自身x座標
  34. set {_x.2} to x-coordinate of {_聖誕糖果蹦.2}#玩家前方十格x座標
  35. set {_y.1} to y-coordinate of {_聖誕糖果蹦.1}#玩家自身y座標
  36. set {_y.2} to y-coordinate of {_聖誕糖果蹦.2}#玩家前方十格y座標
  37. set {_z.1} to z-coordinate of {_聖誕糖果蹦.1}#玩家自身z座標
  38. set {_z.2} to z-coordinate of {_聖誕糖果蹦.2}#玩家前方十格z座標
  39. set {_x.difference} to ({_x.2} - {_x.1}) / 12#計算玩家自身與玩家前方十格 座標差 除以30次
  40. set {_y.difference} to ({_y.2} - {_y.1}) / 12#計算玩家自身與玩家前方十格 座標差 除以30次
  41. set {_z.difference} to ({_z.2} - {_z.1}) / 12#計算玩家自身與玩家前方十格 座標差 除以30次
  42. loop 12 times:#增加座標差30次
  43. increase x-coordinate of {_聖誕糖果蹦.1} by {_x.difference}#增加座標x差 1次
  44. increase y-coordinate of {_聖誕糖果蹦.1} by {_y.difference}#增加座標y差 1次
  45. increase z-coordinate of {_聖誕糖果蹦.1} by {_z.difference}#增加座標z差 1次
  46. spawn 10 of particle {_particle1} offset by 0.5, 0.3, -0.5 at location of {_聖誕糖果蹦.1}#特效
  47. spawn 10 of particle {_particle2} offset by 0.2, 0.1, -0.2 at location of {_聖誕糖果蹦.1}
  48. play raw sound "random.bowhit" at loop-entity with pitch 1 volume 1
  49. loop entities in radius 2 around block at location of {_聖誕糖果蹦.1}:#給予範圍傷
  50. if loop-entity is a player:
  51. send "&c聖&f誕&c快&f樂&c! &6By : %player%" to loop-entity
  52. loop 3 times:
  53. spawn 40 of particle red dust offset by 0.5, 1, 0.5 at location of loop-entity
  54. spawn 20 of particle snowball poof offset by 0.8, 1, 0.8 at location of loop-entity
  55. wait 0.1 ticks
  56. wait 0.5 ticks#給予時間差讓特效有慢慢跑的效果
  57. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement