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 5 second:
- delete {冷卻.%player%::蓄力擊}
- if {冷卻.%player%::蓄力擊} is set:
- send "&c&l《蓄力擊》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::蓄力擊} to now
- send "&e你使用了&c&l《蓄力擊》"
- set {_particle} to crit
- play raw sound "mob.cat.hiss" at player with pitch 2 volume 1
- set {_蓄力擊.1} to block above player#玩家自身座標
- set {_蓄力擊.2} to block 6 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}) / 15#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_y.difference} to ({_y.2} - {_y.1}) / 15#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_z.difference} to ({_z.2} - {_z.1}) / 15#計算玩家自身與玩家前方十格 座標差 除以30次
- loop 15 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 3 of particle {_particle} offset by 0.1, 0.1, -0.1 at location of {_蓄力擊.1}#特效
- loop entities in radius 3 around block at location of {_蓄力擊.1}:#給予範圍傷
- make player damage loop-entity by 20
- wait 0.1 ticks#給予時間差讓特效有慢慢跑的效果
- stop
- if "%{_技能}%" contains "龍祖傳授":
- if {玩家資料.%player%::等級} is more than or equal to 170:
- 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
- send "&e你使用了&c&l《龍祖傳授》"
- set {冷卻.%player%::龍祖傳授} to now
- set {冷卻.%player%::龍祖傳授團體效果} to now
- play raw sound "mob.enderdragon.growl" at player with pitch 3 volume 2
- play raw sound "mob.enderdragon.hit" at player with pitch 2 volume 2
- play raw sound "mob.enderdragon.wings" at player with pitch 2 volume 2
- spawn 60 of particle portal offset by 4, 0.5, -4 at location of player
- spawn 60 of particle red dust offset by 1, 4, -1 at location of player
- spawn 60 of particle smoke offset by 4, 4, -4 at location of player
- loop entities in radius 6 of player:
- if loop-entity is a player:
- spawn 50 of particle happy villager offset by 0, 2, 0 at player
- send "&e你已被 %player% 的&6&l《超技能-龍祖傳授》&e提升 &6100% &e最大HP了" to loop-entity
- set {冷卻.%loop-entity%::龍祖傳授團體效果} to now
- stop
- if "%{_技能}%" contains "魔魂枷鎖":
- if {玩家資料.%player%::等級} is more than or equal to 170:
- 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
- wait 1 ticks
- loop 3 times:
- loop entities in radius 8 of player:
- set {_particle} to witch magic
- if loop-entity isn't a player or a dropped item:
- set {_魔魂枷鎖.1} to block above player#玩家自身座標
- set {_魔魂枷鎖.2} to block above loop-entity#玩家前方十格座標
- 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}
- set {_x.difference} to ({_x.2} - {_x.1}) / 4#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_y.difference} to ({_y.2} - {_y.1}) / 4#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_z.difference} to ({_z.2} - {_z.1}) / 4
- play raw sound "mob.ghast.scream" at player with pitch 0 volume 1
- loop 4 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 3 of particle {_particle} offset by 0.1, 0.1, -0.1 at location of {_魔魂枷鎖.1}#特效
- play raw sound "mob.zombie.remedy" at player with pitch 1 volume 0.5
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::力量} * 17 + {飾品狀態.%player%::力量}) * 4 + ({飾品狀態.%player%::智慧} + {玩家資料.%player%::智慧} * 17) * 3
- thrust loop-entity backwards with force 1
- wait 20 ticks
- stop
- if "%{_技能}%" contains "鬥王領域":
- if {玩家資料.%player%::等級} is more than or equal to 170:
- 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.zombiepig.zpighurt" at player with pitch 1 volume 2
- spawn 100 of particle mob spell offset by 2, 2, -2 at location of player
- thrust player upwards with force 1.5
- wait 10 ticks
- thrust player downwards with force 1.5
- wait 5 ticks
- loop entities in radius 6 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::力量} * 17 + {飾品狀態.%player%::力量}) * 8
- spawn 40 of particle angry villager offset by 0.3, 1, -0.3 at location of loop-entit
- wait 12 ticks
- loop entities in radius 6 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} * 17 + {飾品狀態.%player%::敏捷}) * 4
- spawn 40 of particle angry villager offset by 0.3, 1, -0.3 at location of loop-entity
- thrust loop-entity backwards with force 2
- stop
- if "%{_技能}%" contains "鉉光引力":
- if {玩家資料.%player%::等級} is more than or equal to 170:
- 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.endermen.portal" at player with pitch 2 volume 2
- spawn 60 of particle fireworks spark offset by 3, 4, -3 at location of player
- loop 30 times:
- spawn 100 of particle instant spell offset by 5, 4, -5 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%::智慧} * 17 + {飾品狀態.%player%::智慧}) * 2.5 + ({玩家資料.%player%::力量} * 12 + {飾品狀態.%player%::力量}) * 2.5
- thrust loop-entity forwards with force 1
- thrust loop-entity downwards with force 0.5
- wait 20 ticks
- stop
- if "%{_技能}%" contains "翱翔":
- if {玩家資料.%player%::等級} is more than or equal to 170:
- 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.bat.takeoff" at player with pitch 1 volume 2
- spawn 100 of particle snowball poof offset by 5, 4, -5 at location of player
- thrust player forwards with force 1.5
- thrust player upwards with force 0.5
- loop entities in radius 6 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by ({玩家資料.%player%::敏捷} * 17 + {飾品狀態.%player%::敏捷}) * 2.25 + {飾品狀態.%player%::力量} * 1.4 + {玩家資料.%player%::力量} * 0.9 * 15
- spawn 40 of particle cloud offset by 0.3, 1, -0.3 at location of player
- thrust loop-entity backwards with force 0.5
- wait 10 ticks
- loop 2 times:
- thrust player forwards with force 1.2
- thrust player upwards with force 0.35
- 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%::敏捷} * 17 + {飾品狀態.%player%::敏捷}) * 1.5 + {飾品狀態.%player%::智慧} * 1.15 + {玩家資料.%player%::智慧} * 0.65 * 12
- spawn 40 of particle cloud offset by 0.3, 1, -0.3 at location of player
- thrust loop-entity backwards with force 0.5
- wait 10 ticks
- 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%::智慧} * 12 + {飾品狀態.%attacker%::智慧} + {玩家資料.%attacker%::力量} * 12 + {飾品狀態.%attacker%::力量} + {玩家資料.%attacker%::敏捷} * 12 + {飾品狀態.%attacker%::敏捷}) * 0.05
- if attacker isn't a player:
- stop
- if damage is more than or equal to 0.1:
- play raw sound "mob.enderdragon.wings" at victim with pitch 0 volume 1
- if {冷卻.%victim%::龍祖傳授團體效果} is set:
- if difference between {冷卻.%victim%::龍祖傳授團體效果} and now is more than or equal to 60 seconds:
- delete {冷卻.%victim%::龍祖傳授團體效果}
- set {_龍祖減傷} to damage*0.5
- increase damage by -1 * {_龍祖減傷}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement