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 4 second:
- delete {冷卻.%player%::群魔亂舞}
- if {冷卻.%player%::群魔亂舞} is set:
- send "&c&l《群魔亂舞》&e冷卻中,請稍後再使用"
- stop
- send "&e你使用了&c&l《群魔亂舞》"
- set {冷卻.%player%::群魔亂舞} to now
- play raw sound "mob.ghast.scream" at player with pitch 1 volume 1
- spawn 150 of particle witch magic offset by 3, 2, -3 at location of player
- loop entities in radius 7 of player:
- if loop-entity isn't a player or a dropped item:
- set {冷卻.%player%::群魔亂舞} to now
- make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 3.2
- spawn 40 of particle portal offset by 5, 0, -0.5 at location of loop-entity
- heal player by 0.5
- stop
- if "%{_技能}%" contains "龍之吐息":
- if {玩家資料.%player%::等級} is more than or equal to 120:
- if difference between {冷卻.%player%::龍之吐息} and now is more than or equal to 7 second:
- delete {冷卻.%player%::龍之吐息}
- if {冷卻.%player%::龍之吐息} is set:
- send "&c&l《龍之吐息》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::龍之吐息} to now
- send "&e你使用了&c&l《龍之吐息》"
- heal player by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.04) / (player's max health + {飾品狀態.%player%::血量增加}) * player's max health
- set {_particle龍之吐息} to witch magic
- play raw sound "mob.enderdragon.growl" at player with pitch 2 volume 2
- 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}) / 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 40 of particle {_particle龍之吐息} offset by 1, 1, -1 at location of {_龍之吐息.1}#特效
- loop entities in radius 3 around block at location of {_龍之吐息.1}:#給予範圍傷
- make player damage loop-entity by {飾品狀態.%player%::智慧} * 2.65 + {玩家資料.%player%::智慧} * 2.65
- wait 10 ticks#給予時間差讓特效有慢慢跑的效果
- wait 10 ticks
- stop
- if "%{_技能}%" contains "空間撕裂":
- if difference between {冷卻.%player%::空間撕裂} and now is more than or equal to 12 second:
- delete {冷卻.%player%::空間撕裂}
- if {冷卻.%player%::空間撕裂} is set:
- send "&6&l《空間撕裂》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::空間撕裂} to now
- send "&b你發射了&6&l《空間撕裂》"
- loop entities in radius 6 of player:
- if loop-entity isn't a player or a dropped item:
- apply invisibility 1 to the loop-entity for 2 second
- play raw sound "mob.creeper.death" at player with pitch 0 volume 2
- spawn 60 of particle mob spell offset by 3, 0.3, -3 at location of player
- wait 10 ticks
- loop entities in radius 6 of player:
- if loop-entity isn't a player or a dropped item:
- play raw sound "mob.enderdragon.wings" at player with pitch 1 volume 2
- spawn 40 of particle spell offset by 1, 0.6, -1 at location of loop-entity
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.75
- wait 10 ticks
- loop entities in radius 6 of player:
- if loop-entity isn't a player or a dropped item:
- play raw sound "mob.enderdragon.wings" at player with pitch 1 volume 2
- spawn 40 of particle spell offset by 1, 0.6, -1 at location of loop-entity
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.75
- wait 20 ticks
- loop entities in radius 6 of player:
- if loop-entity isn't a player or a dropped item:
- play raw sound "mob.blaze.death" at player with pitch 1 volume 2
- spawn 50 of particle mob spell offset by 1, 0.6, -1 at location of loop-entity
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 4
- stop
- if "%{_技能}%" contains "龍咆哮":
- if {玩家資料.%player%::等級} is more than or equal to 120:
- 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.growl" at player with pitch 2 volume 2
- spawn 80 of particle witch magic offset by 1, 1, -1 at location of player
- damage player by 4
- 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%::敏捷}) * 4
- spawn 40 of particle red dust offset by 0.3, 1, -0.3 at location of loop-entity
- stop
- if "%{_技能}%" contains "神光護體":
- if {玩家資料.%player%::等級} is more than or equal to 120:
- if difference between {冷卻.%player%::神光護體} and now is more than or equal to 30 second:
- delete {冷卻.%player%::神光護體}
- if {冷卻.%player%::神光護體} is set:
- send "&c&l《神光護體》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::神光護體} to now
- send "&e你使用了&c&l《神光護體》"
- play raw sound "mob.bat.death" at player with pitch 2 volume 2
- spawn 60 of particle fireworks spark offset by 3, 4, -3 at location of player
- loop 60 times:
- spawn 60 of particle spell offset by 3, 4, -3 at location of player
- loop entities in radius 3 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 2.5 + ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 1.6
- thrust loop-entity backwards with force 1
- thrust loop-entity upwards with force 0.5
- wait 10 ticks
- 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
- send "&e你使用了&c&l《影噬之劍》"
- play raw sound "mob.wither.spawn" at player with pitch 1 volume 1
- loop entities in radius 20 of player:
- if loop-entity is targeted a entity:
- if loop-entity isn't a player:
- set {冷卻.%player%::影噬之劍} to now
- loop 5 times:
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 0.8
- apply slowness 3 to the loop-entity for 10 ticks
- spawn 100 of particle smoke offset by 1, 2, -1 at location of loop-entity
- play raw sound "mob.endermen.hit" at player with pitch 1 volume 1
- wait 10 ticks
- make player damage loop-entity by ({玩家資料.%player%::力量} + {飾品狀態.%player%::力量}) * 5.5
- spawn 100 of particle explode offset by 1, 2, -1 at location of loop-entity
- play raw sound "mob.endermen.portal" at player with pitch 1 volume 1
- if {冷卻.%player%::影噬之劍} is set:
- stop
- send "&c&l《影噬之劍》&7命中失敗。"
- stop
- if "%{_技能}%" contains "護佑之盾":
- if {玩家資料.%player%::等級} is more than or equal to 120:
- if difference between {冷卻.%player%::護佑之盾} and now is more than or equal to 20 second:
- delete {冷卻.%player%::護佑之盾}
- if {冷卻.%player%::護佑之盾} is set:
- send "&c&l《護佑之盾》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::護佑之盾} to now
- send "&e你使用了&c&l《護佑之盾》"
- play raw sound "mob.irongolem.death" at player with pitch 2 volume 2
- spawn 150 of particle enchantment table offset by 4, 4, -4 at location of player
- apply absorption 3 to player for 20 seconds
- loop entities in radius 5 of player:
- if loop-entity is a player:
- apply absorption 3 to the loop-entity for 20 seconds
- stop
- if "%{_技能}%" contains "魔劍激發":
- if difference between {冷卻.%player%::魔劍激發} and now is more than or equal to 60 second:
- delete {冷卻.%player%::魔劍激發}
- if {冷卻.%player%::魔劍激發} is set:
- send "&c&l《魔劍激發》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::魔劍激發} to now
- set {魔劍激發.%player%} to now
- send "&e你使用了&c&l《魔劍激發》"
- play raw sound "mob.endermen.death" at player with pitch 1 volume 2
- spawn 60 of particle witch magic offset by 0, 6, 0 at player
- spawn 50 of particle magic crit offset by 2, 3, -2 at player
- stop
- on damage:
- if {魔劍激發.%attacker%} is set:
- if difference between {魔劍激發.%attacker%} and now is more than or equal to 60 seconds:
- delete {魔劍激發.%attacker%}
- increase damage by ({玩家資料.%attacker%::智慧} + {飾品狀態.%attacker%::智慧}) * 0.4
- if attacker isn't a player:
- stop
- if damage is more than or equal to 0.1:
- play raw sound "mob.enderdragon.hit" at victim with pitch 2 volume 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement