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 8 second:
- delete {冷卻.%player%::生靈塗炭}
- if {冷卻.%player%::生靈塗炭} is set:
- send "&c&l《生靈塗炭》&e冷卻中,請稍後再使用"
- stop
- send "&e你使用了&c&l《生靈塗炭》"
- play raw sound "liquid.splash" at player with pitch 2 volume 1
- loop entities in radius 5 of player:
- if loop-entity is targeted a entity:
- if loop-entity isn't a player or a dropped item:
- loop 2 times:
- set {冷卻.%player%::生靈塗炭} to now
- make player damage loop-entity by ({玩家資料.%player%::敏捷} * 7 + {飾品狀態.%player%::敏捷}) * 5.5
- apply slowness 10 to the loop-entity for 5 ticks
- spawn 20 of particle red dust offset by 0.3, 0.5, 0.3 at location of loop-entity
- play raw sound "mob.irongolem.hit" at player with pitch 0 volume 1
- wait 10 ticks
- if {冷卻.%player%::生靈塗炭} is set:
- stop
- send "&c&l《生靈塗炭》&7命中失敗。"
- stop
- if "%{_技能}%" contains "光速分弩雙擊":
- if difference between {冷卻.%player%::光速分弩雙擊} and now is more than or equal to 2 second:
- delete {冷卻.%player%::光速分弩雙擊}
- if {冷卻.%player%::光速分弩雙擊} is set:
- send "&c&l《光速分弩雙擊》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::光速分弩雙擊} to now
- send "&e你使用了&c&l《光速分弩雙擊》"
- loop 2 times:
- set {_particle} to crit
- play raw sound "random.bow" at player with pitch 2 volume 1
- set {_光速分弩雙擊.1} to block above player#玩家自身座標
- set {_光速分弩雙擊.2} to block 30 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}) / 25#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_y.difference} to ({_y.2} - {_y.1}) / 25#計算玩家自身與玩家前方十格 座標差 除以30次
- set {_z.difference} to ({_z.2} - {_z.1}) / 25#計算玩家自身與玩家前方十格 座標差 除以30次
- loop 25 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.1, -0.1 at location of {_光速分弩雙擊.1}#特效
- loop entities in radius 2 around block at location of {_光速分弩雙擊.1}:#給予範圍傷
- make player damage loop-entity by {飾品狀態.%player%::敏捷} * 1.75 + {玩家資料.%player%::敏捷} * 1.75 * 7
- wait 0.1 ticks#給予時間差讓特效有慢慢跑的效果
- wait 10 ticks
- stop
- if "%{_技能}%" contains "閃電大奶奶":
- if difference between {冷卻.%player%::閃電大奶奶} and now is more than or equal to 10 second:
- delete {冷卻.%player%::閃電大奶奶}
- if {冷卻.%player%::閃電大奶奶} is set:
- send "&6&l《閃電大奶奶》&f沒有力氣了,請在等一下!"
- stop
- set {冷卻.%player%::閃電大奶奶} to now
- send "&b你發射了&6&l《閃電大奶奶》"
- play raw sound "random.bow" at player with pitch 0 volume 1
- loop entities in radius 5 of player:
- if loop-entity isn't a player or a dropped item:
- thrust loop-entity upwards with force 2
- wait 10 ticks
- set {_閃電大奶奶} to block 10 blocks above player
- loop entities in radius 8 around block at location of {_閃電大奶奶}:
- if loop-entity isn't a player or a dropped item:
- strike lightning effect at the loop-entity
- ignite the loop-entity for 5 second
- thrust loop-entity backwards with force 1
- make player damage loop-entity by 5487
- 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
- send "&e你使用了&c&l《詛咒的安眠曲》"
- play raw sound "mob.wither.shoot" at player with pitch 2 volume 1
- loop 120 times:
- 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%::智慧} * 7 + {飾品狀態.%player%::智慧}) * 1.75
- spawn 60 of particle smoke offset by 3, 4, -3 at location of player
- wait 10 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
- set {冷卻.%player%::精靈的嘉年華曲} to now
- send "&e你使用了&c&l《精靈的嘉年華曲》"
- play raw sound "mob.cat.meow" at player with pitch 2 volume 1
- apply jump boost 5 to the player for 60 second
- loop entities in radius 10 of player:
- if loop-entity is a player:
- apply jump boost 5 to the loop-entity for 60 second
- apply regeneration 1 to the loop-entity for 60 second
- spawn 85 of particle note offset by 3, 4, -3 at location of player
- 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
- set {冷卻.%player%::神聖光環} to now
- send "&e你使用了&c&l《神聖光環》"
- loop 30 times:
- play raw sound "random.anvil_land" at player with pitch 1 volume 0.5
- heal player by (({玩家資料.%player%::智慧} * 7 + {飾品狀態.%player%::智慧}) * 0.04) / (player's max health + {飾品狀態.%player%::血量增加}) * player's max health
- spawn 10 of particle spell offset by 2, 4, -2 at location of player
- loop entities in radius 3 of player:
- if loop-entity is a player:
- heal loop-entity by (({玩家資料.%player%::智慧} * 7 + {飾品狀態.%player%::智慧}) * 0.05) / (loop-entity's max health + {飾品狀態.%loop-entity%::血量增加}) * loop-entity's max health
- spawn 10 of particle spell offset by 2, 1, -2 at location of loop-entity
- wait 20 ticks
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement