Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click:
- loop {_lore::*}:
- if {_lore::%loop-index%} contains "可施展技能" or "能":
- set {_技能} to {_lore::%loop-index%}#儲存技能注解
- if {_check} is 5:#檢測是不是無關數字
- set {_check} to 1#確認可以開技能
- if {_lore::%loop-index%} contains "職業限制" or "職業需求":
- set {_職業} to {_lore::%loop-index%}#儲存職業注解
- set {_check} to 0#因為有職業限制,先檢查職業
- exit loop
- if {_check} is 0:
- if {_職業} is 0:#沒變化就停止.
- damage player by 100000
- stop
- loop {職業::*}:
- if "%{_職業}%" contains "%loop-value%":
- if {玩家資料.%player%::職業} is "%loop-value%":
- set {_check} to 1#允許過職業關
- if "%{_技能}%" contains "獵殺末地":
- if difference between {冷卻.%player%::獵殺末地} and now is more than or equal to 16 second:
- delete {冷卻.%player%::獵殺末地}
- if {冷卻.%player%::獵殺末地} is set:
- send "&c&l《獵殺末地》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::獵殺末地} to now
- send "&e你使用了&c&l《獵殺末地》"
- play raw sound "mob.sheep.shear" at player with pitch 0 volume 2
- thrust player upwards with force 1
- wait 20 ticks
- thrust player downwards with force 1
- wait 10 ticks
- spawn 50 of particle angry villager offset by 3, 0.5, -3 at location of player
- loop entities in radius 6 of player:
- if loop-entity isn't a player:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 3.5 + ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.0
- apply slowness 10 to the loop-entity for 3 seconds
- spawn 10 of particle witch magic offset by 0.2, 1, -0.2 at location of loop-entity
- thrust loop-entity backwards with force 1
- wait 10 ticks
- thrust player backwards with force 1
- stop
- if "%{_技能}%" contains "萬箭制裁":
- if difference between {冷卻.%player%::萬箭制裁} and now is more than or equal to 12 second:
- delete {冷卻.%player%::萬箭制裁}
- if {冷卻.%player%::萬箭制裁} is set:
- send "&c&l《萬箭制裁》&e冷卻中,請稍後再使用"
- stop
- send "&e你使用了&c&l《萬箭制裁》"
- set {冷卻.%player%::萬箭制裁} to now
- loop blocks in radius 20 of player:
- if targeted block is loop-block:
- set {_萬箭制裁位置} to location of loop-block
- loop 5 times:
- loop entities in radius 6 around location of block at {_萬箭制裁位置}:
- if loop-entity isn't a player:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 0.6
- push the loop-entity downwards with force 0.2
- play raw sound "mob.wither.death" at loop-entity with pitch 2 volume 0.2
- spawn 30 of particle smoke offset by -4, 3, 4 at location of {_萬箭制裁位置}
- spawn 40 of particle crit offset by 0, 8, 0 at location of loop-entity
- wait 12 ticks
- delete {_萬箭制裁位置}
- stop
- if "%{_技能}%" contains "熾炎爆裂":
- if {玩家資料.%player%::等級} is more than or equal to 70:
- if difference between {冷卻.%player%::熾炎爆裂} and now is more than or equal to 8 second:
- delete {冷卻.%player%::熾炎爆裂}
- if {冷卻.%player%::熾炎爆裂} is set:
- send "&c&l《熾炎爆裂》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::熾炎爆裂} to now
- send "&e你使用了&c&l《熾炎爆裂》"
- set {_熾炎爆裂} to block 4 blocks in front player
- play raw sound "liquid.lavapop" at player with pitch 1 volume 2
- loop entities in radius 4 around block at location of {_熾炎爆裂}:
- if loop-entity isn't a player or a dropped item:
- spawn 4 of particle flame offset by 3, 3, -3 at location of {_熾炎爆裂}
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.8
- thrust loop-entity upwards with force 0.4
- wait 10 ticks
- loop entities in radius 5 around block at location of {_熾炎爆裂}:
- if loop-entity isn't a player or a dropped item:
- spawn 1 of particle huge explosion offset by 0.1, 0.1, 0.1 at location of loop-entity
- ignite the loop-entity for 5 second
- play raw sound "fireworks.largeBlast1" at player with pitch 1 volume 2
- spawn 40 of particle drip lava offset by 3, 5, -3 at location of {_熾炎爆裂}
- make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 3.5
- stop
- if "%{_技能}%" contains "魔天一擊":
- if {玩家資料.%player%::等級} is more than or equal to 70:
- if difference between {冷卻.%player%::魔天一擊} and now is more than or equal to 6 second:
- delete {冷卻.%player%::魔天一擊}
- if {冷卻.%player%::魔天一擊} is set:
- send "&c&l《魔天一擊》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::魔天一擊} to now
- send "&e你使用了&c&l《魔天一擊》"
- apply slowness 10 to the player for 10 ticks
- play raw sound "mob.blaze.death" at player with pitch 2 volume 1
- wait 10 ticks
- loop entities in radius 5 of player:
- if loop-entity is targeted a entity:
- if loop-entity isn't a player:
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 2.5 + ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 3.5
- thrust loop-entity backwards with force 0.6
- spawn 30 of particle magic crit offset by 0.3, 0.3, 0.3 at location of loop-entity
- spawn 30 of particle witch magic offset by 0.1, 1, -0.1 at location of loop-entity
- play raw sound "mob.blaze.death" at player with pitch 0 volume 1
- stop
- if "%{_技能}%" contains "無雙扇形斬":
- if difference between {冷卻.%player%::無雙扇形斬} and now is more than or equal to 4 second:
- delete {冷卻.%player%::無雙扇形斬}
- if {冷卻.%player%::無雙扇形斬} is set:
- send "&c&l《無雙扇形斬》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::無雙扇形斬} to now
- send "&e你使用了&c&l《無雙扇形斬》"
- set {_無雙扇形斬} to block 4 blocks in front player
- play raw sound "mob.bat.takeoff" at player with pitch 2 volume 2
- loop entities in radius 4 around block at location of {_無雙扇形斬}:
- if loop-entity isn't a player or a dropped item:
- spawn 25 of particle crit offset by 3, 0.1, -3 at location of {_無雙扇形斬}
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.8
- thrust loop-entity upwards with force 0.2
- wait 20 ticks
- loop entities in radius 5 around block at location of {_無雙扇形斬}:
- if loop-entity isn't a player or a dropped item:
- play raw sound "mob.bat.takeoff" at player with pitch 1 volume 2
- spawn 25 of particle crit offset by 3, 0.1, -3 at location of {_無雙扇形斬}
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 2.5
- thrust loop-entity backwards with force 0.4
- stop
- if "%{_技能}%" contains "劍氣突進":
- if difference between {冷卻.%player%::劍氣突進} and now is more than or equal to 1 second:
- delete {冷卻.%player%::劍氣突進}
- if {冷卻.%player%::劍氣突進} is set:
- send "&c&l《劍氣突進》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::劍氣突進} to now
- send "&e你使用了&c&l《劍氣突進》"
- play raw sound "mob.enderdragon.wings" at player with pitch 2 volume 2
- spawn 25 of particle red dust offset by 0.3, 0.6, -0.3 at location of player
- thrust player forwards with force 1.2
- thrust player upwards with force 0.3
- stop
- if "%{_技能}%" contains "龍神槍刺擊":
- if difference between {冷卻.%player%::龍神槍刺擊} and now is more than or equal to 1 second:
- delete {冷卻.%player%::龍神槍刺擊}
- if {冷卻.%player%::龍神槍刺擊} is set:
- send "&c&l《龍神槍刺擊》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::龍神槍刺擊} to now
- send "&e你使用了&c&l《龍神槍刺擊》"
- set {_particle} to fireworks spark
- play raw sound "mob.enderdragon.hit" at player with pitch 2 volume 1
- set {_龍神槍刺擊.1} to block above player#玩家自身座標
- set {_龍神槍刺擊.2} to block 8 blocks in front player#玩家前方十格座標
- set {_x.1} to x-coordinate of {_龍神槍刺擊.1}#玩家自身x座標
- set {_x.2} to x-coordinate of {_龍神槍刺擊.2}#玩家前方十格x座標
- set {_y.1} to y-coordinate of {_龍神槍刺擊.1}#玩家自身y座標
- set {_y.2} to y-coordinate of {_龍神槍刺擊.2}#玩家前方十格y座標
- set {_z.1} to z-coordinate of {_龍神槍刺擊.1}#玩家自身z座標
- set {_z.2} to z-coordinate of {_龍神槍刺擊.2}#玩家前方十格z座標
- set {_x.difference} to ({_x.2} - {_x.1}) / 10#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_y.difference} to ({_y.2} - {_y.1}) / 10#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_z.difference} to ({_z.2} - {_z.1}) / 10#計算玩家自身與玩家前方十格 座標差 除以30次
- loop 10 times:#增加座標差30次
- increase x-coordinate of {_龍神槍刺擊.1} by {_x.difference}#增加座標x差 1次
- increase y-coordinate of {_龍神槍刺擊.1} by {_y.difference}#增加座標y差 1次
- increase z-coordinate of {_龍神槍刺擊.1} by {_z.difference}#增加座標z差 1次
- spawn 4 of particle {_particle} offset by 0.2, 0.3, -0.2 at location of {_龍神槍刺擊.1}#特效
- loop entities in radius 2 around block at location of {_龍神槍刺擊.1}:#給予範圍傷
- make player damage loop-entity by {飾品狀態.%player%::力量} * 1.8 + {玩家資料.%player%::力量} * 1.8 + {飾品狀態.%player%::敏捷} * 0.5 + {玩家資料.%player%::敏捷} * 0.5
- wait 0.1 ticks#給予時間差讓特效有慢慢跑的效果
- heal player by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.05) / (player's max health + {飾品狀態.%player%::血量增加}) * player's max health
- stop
- if "%{_技能}%" contains "聖光裁決":
- if {玩家資料.%player%::等級} is more than or equal to 70:
- if difference between {冷卻.%player%::聖光裁決} and now is more than or equal to 3 second:
- delete {冷卻.%player%::聖光裁決}
- if {冷卻.%player%::聖光裁決} is set:
- send "&c&l《聖光裁決》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::聖光裁決} to now
- send "&e你使用了&c&l《聖光裁決》"
- play raw sound "mob.zombie.unfect" at player with pitch 1 volume 1
- heal player by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.05) / (player's max health + {飾品狀態.%player%::血量增加}) * player's max health
- send "&e你已被 %player% 的&c&l《聖光裁決》&e治療了" to player
- spawn 15 of particle heart offset by 0.1, 0.5, 0.1 at location of player
- loop entities in radius 7 of player:
- if loop-entity is a player:
- heal loop-entity by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.05) / (loop-entity's max health + {飾品狀態.%loop-entity%::血量增加}) * loop-entity's max health
- spawn 35 of particle heart offset by 0.1, 0.5, 0.1 at location of loop-entity
- send "&e你已被 %player% 的&c&l《聖光裁決》&e治療了" to loop-entity
- else:
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 2.2 + ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 1.5
- spawn 35 of particle spell offset by 0.1, 0.5, 0.1 at location of loop-entity
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement