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 15 second:
- delete {冷卻.%player%::空襲援助}
- if {冷卻.%player%::空襲援助} is set:
- send "&c&l《空襲援助》&e冷卻中,請稍後再使用"
- stop
- send "&e你使用了&c&l《空襲援助》"
- set {冷卻.%player%::空襲援助} to now
- apply slowness 10 to the player for 20 ticks
- play raw sound "mob.endermen.scream" at player with pitch 2 volume 2
- spawn 1 of particle huge explosion offset by 0, 0, 0 at location of player
- loop entities in radius 9 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 3
- spawn 1 of particle huge explosion offset by 0, 0, 0 at location of loop-entity
- ignite loop-entity for 20 ticks
- thrust loop-entity backwards with force 0.5
- loop entities in radius 9 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 3
- spawn 1 of particle huge explosion offset by 0, 0, 0 at location of loop-entity
- ignite loop-entity for 20 ticks
- thrust loop-entity backwards with force 0.5
- loop entities in radius 9 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 3
- spawn 1 of particle huge explosion offset by 0, 0, 0 at location of loop-entity
- ignite loop-entity for 20 ticks
- thrust loop-entity backwards with force 0.5
- stop
- if "%{_技能}%" contains "捕獵":
- 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
- send "&e你使用了&c&l《捕獵》"
- set {冷卻.%player%::捕獵} to now
- play raw sound "mob.bat.death" at player with pitch 2 volume 1
- apply slowness 10 to the player for 10 ticks
- loop blocks in radius 12 of player:
- if targeted block is loop-block:
- set {_捕獵} to location of block 1 blocks above loop-block
- wait 2 ticks
- loop entities in radius 9 around block at location of {_捕獵}:
- if loop-entity isn't a player or a dropped item:
- set {冷卻.%player%::捕獵} to now
- teleport loop-entity to {_捕獵}
- play raw sound "mob.bat.death" at player with pitch 2 volume 1
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 2.25
- spawn 50 of particle explode offset by 0.5, 1, -0.5 at location of loop-entity
- spawn 50 of particle crit offset by 2, 4, -2 at location of loop-entity
- apply slowness 3 to the loop-entity for 10 ticks
- stop
- if "%{_技能}%" contains "暗殺五部曲":
- if difference between {冷卻.%player%::暗殺五部曲} and now is more than or equal to 5 second:
- delete {冷卻.%player%::暗殺五部曲}
- if {冷卻.%player%::暗殺五部曲} is set:
- send "&c&l《暗殺五部曲》&e冷卻中,請稍後再使用"
- stop
- send "&e你使用了&c&l《暗殺五部曲》"
- set {冷卻.%player%::暗殺五部曲} to now
- play raw sound "mob.endermen.death" at player with pitch 2 volume 1
- spawn 60 of particle drip water offset by 1, 2, -1 at location of player
- apply slowness 10 to the player for 30 ticks
- set {_暗殺五部曲} to block 1 blocks in front player
- wait 1 ticks
- set {_暗殺五部曲tp} to block 8 blocks in front player
- teleport player to {_暗殺五部曲tp}
- loop entities in radius 6 around block at location of {_暗殺五部曲}:
- if loop-entity isn't a player or a dropped item:
- play raw sound "mob.skeleton.hurt" at player with pitch 0 volume 1
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 1.5
- spawn 50 of particle red dust offset by 0.5, 1, -0.5 at location of loop-entity
- spawn 50 of particle large smoke offset by 2, 4, -2 at location of loop-entity
- apply slowness 3 to the loop-entity for 10 ticks
- wait 10 ticks
- loop entities in radius 6 around block at location of {_暗殺五部曲}:
- if loop-entity isn't a player or a dropped item:
- play raw sound "mob.skeleton.hurt" at player with pitch 0 volume 1
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 1.5
- spawn 50 of particle red dust offset by 0.5, 1, -0.5 at location of loop-entity
- spawn 50 of particle large smoke offset by 2, 4, -2 at location of loop-entity
- apply slowness 3 to the loop-entity for 10 ticks
- wait 20 ticks
- loop entities in radius 6 around block at location of {_暗殺五部曲}:
- if loop-entity isn't a player or a dropped item:
- set {冷卻.%player%::暗殺五部曲} to now
- play raw sound "mob.skeleton.hurt" at player with pitch 0 volume 1
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 2
- spawn 50 of particle red dust offset by 0.5, 1, -0.5 at location of loop-entity
- spawn 50 of particle crit offset by 2, 4, -2 at location of loop-entity
- apply slowness 3 to the loop-entity for 10 ticks
- wait 10 ticks
- loop entities in radius 6 around block at location of {_暗殺五部曲}:
- if loop-entity isn't a player or a dropped item:
- set {冷卻.%player%::暗殺五部曲} to now
- play raw sound "mob.skeleton.hurt" at player with pitch 0 volume 1
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 2
- spawn 50 of particle red dust offset by 0.5, 1, -0.5 at location of loop-entity
- spawn 50 of particle crit offset by 2, 4, -2 at location of loop-entity
- apply slowness 3 to the loop-entity for 10 ticks
- wait 10 ticks
- loop entities in radius 6 around block at location of {_暗殺五部曲}:
- if loop-entity isn't a player or a dropped item:
- set {冷卻.%player%::暗殺五部曲} to now
- play raw sound "mob.skeleton.hurt" at player with pitch 0 volume 1
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 2
- spawn 50 of particle red dust offset by 0.5, 1, -0.5 at location of loop-entity
- spawn 50 of particle crit offset by 2, 4, -2 at location of loop-entity
- apply slowness 3 to the loop-entity for 10 ticks
- thrust loop-entity backwards with force 1
- thrust loop-entity upwards with force 1
- stop
- if "%{_技能}%" contains "天堂狙擊":
- if difference between {冷卻.%player%::天堂狙擊} and now is more than or equal to 15 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.woodbreak" at player with pitch 2 volume 1
- loop entities in radius 20 of player:
- if loop-entity is targeted a entity:
- if loop-entity isn't a player:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 10
- spawn 20 of particle cloud offset by 0, 0.3, 1 at location of loop-entity
- spawn 20 of particle cloud offset by 0, 0.3, -1 at location of loop-entity
- spawn 20 of particle cloud offset by 1, 0.3, 0 at location of loop-entity
- spawn 20 of particle cloud offset by -1, 0.3, 0 at location of loop-entity
- spawn 80 of particle crit offset by 0.1, 5, -0.1 at location of loop-entity
- spawn 80 of particle angry villager offset by 0.1, 5, -0.1 at location of loop-entity
- stop
- if "%{_技能}%" contains "暗器連擲":
- if difference between {冷卻.%player%::暗器連擲} and now is more than or equal to 10 second:
- delete {冷卻.%player%::暗器連擲}
- if {冷卻.%player%::暗器連擲} is set:
- send "&c&l《暗器連擲》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::暗器連擲} to now
- send "&e你使用了&c&l《暗器連擲》"
- set {_particle暗器連擲1} to large smoke
- set {_particle暗器連擲2} to crit
- play raw sound "ambient.weather.thunder" at player with pitch 3 volume 2
- loop 8 times:
- set {_暗器連擲.1} to block above player#玩家自身座標
- set {_暗器連擲.2} to block 10 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}) / 8#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_y.difference} to ({_y.2} - {_y.1}) / 8#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_z.difference} to ({_z.2} - {_z.1}) / 8#計算玩家自身與玩家前方十格 座標差 除以30次
- loop 8 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 40 of particle {_particle暗器連擲1} offset by 0.1, 0.1, -0.1 at location of {_暗器連擲.1}#特效
- spawn 40 of particle {_particle暗器連擲2} offset by 0.1, 0.1, -0.1 at location of {_暗器連擲.1}
- loop entities in radius 2 around block at location of {_暗器連擲.1}:#給予範圍傷
- if loop-entity isn't a player:
- make player damage loop-entity by {飾品狀態.%player%::敏捷} * 1.75 + {玩家資料.%player%::敏捷} * 1.75
- apply slowness 5 to the loop-entity for 5 ticks
- wait 1 ticks#給予時間差讓特效有慢慢跑的效果
- wait 10 ticks
- stop
- if "%{_技能}%" contains "龍神之箭":
- if difference between {冷卻.%player%::龍神之箭} and now is more than or equal to 14 second:
- delete {冷卻.%player%::龍神之箭}
- if {冷卻.%player%::龍神之箭} is set:
- send "&c&l《龍神之箭》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::龍神之箭} to now
- send "&e你使用了&c&l《龍神之箭》"
- set {_particle龍神之箭1} to happy villager
- set {_particle龍神之箭2} to angry villager
- play raw sound "mob.enderdragon.end" at player with pitch 2 volume 1
- set {_龍神之箭.1} to block above player#玩家自身座標
- set {_龍神之箭.2} to block 25 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}) / 40#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_y.difference} to ({_y.2} - {_y.1}) / 40#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_z.difference} to ({_z.2} - {_z.1}) / 40#計算玩家自身與玩家前方十格 座標差 除以30次
- loop 40 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 40 of particle {_particle龍神之箭1} offset by 0.3, 0.2, -0.3 at location of {_龍神之箭.1}#特效
- spawn 40 of particle {_particle龍神之箭2} offset by 0.3, 0.2, -0.3 at location of {_龍神之箭.1}
- loop entities in radius 4 around block at location of {_龍神之箭.1}:#給予範圍傷
- if loop-entity isn't a player:
- make player damage loop-entity by {飾品狀態.%player%::敏捷} * 6.5 + {玩家資料.%player%::敏捷} * 6.5
- thrust loop-entity backwards with force 2
- thrust loop-entity upwards with force 2
- wait 0.5 ticks#給予時間差讓特效有慢慢跑的效果
- wait 10 ticks
- stop
- if "%{_技能}%" contains "破風連攜":
- 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《破風連攜》"
- play raw sound "mob.creeper.death" at player with pitch 1 volume 2
- spawn 100 of particle spell offset by 2, 2, -2 at location of player
- thrust player forwards with force 1.5
- loop entities in radius 5 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 2.5
- spawn 40 of particle cloud offset by 0.3, 1, -0.3 at location of loop-entity
- thrust loop-entity backwards with force 2
- wait 8 ticks
- thrust player forwards with force 0.8
- loop entities in radius 5 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 2.5
- spawn 40 of particle cloud offset by 0.3, 1, -0.3 at location of loop-entity
- thrust loop-entity backwards with force 1
- stop
- if "%{_技能}%" contains "機械槍手":
- if difference between {冷卻.%player%::機械槍手} and now is more than or equal to 20 second:
- delete {冷卻.%player%::機械槍手}
- if {冷卻.%player%::機械槍手} is set:
- send "&c這項技能還在冷卻,請稍後在施放"
- stop
- set {冷卻.%player%::機械槍手} to now
- spawn a iron golem at location of player
- spawn a iron golem at location of player
- wait 1 ticks
- loop entities in radius 8 around player:
- if loop-entity is a iron golem:
- set name of loop-entity to "%player%的機械槍手"
- apply resistance 5 to loop-entity for 8 seconds
- if loop-entity isn't a player or a dropped item or a iron golem:
- play raw sound "mob.zombie.metal" at player with pitch 1 volume 0.5
- play raw sound "mob.zombie.remedy" at player with pitch 1 volume 0.5
- make player damage loop-entity by ({玩家資料.%player%::敏捷} + {飾品狀態.%player%::敏捷}) * 5.5
- thrust loop-entity backwards with force 2
- thrust loop-entity upwards with force 1
- stop
Add Comment
Please, Sign In to add comment