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 0.5 second:
- delete {冷卻.%player%:子彈射擊}
- if {冷卻.%player%::子彈射擊} is set:
- stop
- set {冷卻.%player%::子彈射擊} to now
- set {_particle} to crit
- play raw sound "mob.cat.hiss" at player with pitch 0 volume 1
- set {_子彈射擊.1} to block above player#玩家自身座標
- set {_子彈射擊.2} to block 50 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}) / 60#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_y.difference} to ({_y.2} - {_y.1}) / 60#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_z.difference} to ({_z.2} - {_z.1}) / 60#計算玩家自身與玩家前方十格 座標差 除以30次
- loop 60 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 2 of particle {_particle} offset by 0.1, 0.2, -0.1 at location of {_子彈射擊.1}#特效
- wait 1 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
- 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 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
- 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
- apply health boost 3 to player for 60 seconds
- 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提升最大HP了" to loop-entity
- apply health boost 3 to loop-entity for 60 seconds
- stop
- if "%{_技能}%" contains "經驗石碑":
- if difference between {冷卻.%player%::經驗石碑} and now is more than or equal to 0.2 second:
- delete {冷卻.%player%::經驗石碑}
- if {冷卻.%player%::經驗石碑} is set:
- stop
- send "&e你使用了&c&l《經驗石碑》"
- set {冷卻.%player%::經驗石碑} to now
- play raw sound "mob.enderdragon.growl" at player with pitch 2 volume 2
- play raw sound "mob.enderdragon.hit" at player with pitch 2 volume 2
- play raw sound "random.levelup" at player with pitch 2 volume 2
- loop entities in radius 12 of player:
- if loop-entity is a player:
- spawn 50 of particle portal offset by 1, 2, -1 at loop-entity
- send "&c你被經驗石碑命中了!" to loop-entity
- damage loop-entity by 9.5
- spawn 60 of particle happy villger offset by 0.3, 6, -0.3 at loop-entity
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement