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 3 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 10 ticks
- play raw sound "mob.wither.shoot" at player with pitch 2 volume 1
- spawn 60 of particle drip lava offset by 1, 2, -1 at location of player
- loop entities in radius 10 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.5
- spawn 50 of particle flame offset by 0.5, 4, -0.5 at location of loop-entity
- spawn 50 of particle large smoke offset by 0.5, 4, -0.5 at location of loop-entity
- ignite loop-entity for 20 ticks
- stop
- if "%{_技能}%" contains "暴風雪":
- 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
- send "&e你使用了&c&l《暴風雪》"
- set {冷卻.%player%::暴風雪} to now
- play raw sound "mob.wither.death" at player with pitch 0 volume 1
- spawn 60 of particle drip water offset by 1, 2, -1 at location of player
- apply slowness 10 to the player for 10 ticks
- loop entities in radius 10 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
- spawn 50 of particle snowball poof offset by 0.5, 4, -0.5 at location of loop-entity
- spawn 50 of particle cloud offset by 0.5, 4, -0.5 at location of loop-entity
- apply slowness 3 to the loop-entity for 20 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.zombie.unfect" at player with pitch 1 volume 1
- spawn 60 of particle spell offset by 1, 2, -1 at location of player
- heal player by 2.5
- send "&e你已被 %player% 的&c&l《天怒》&e治療了" to player
- apply slowness 10 to the player for 10 ticks
- loop entities in radius 10 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.5
- spawn 65 of particle fireworks spark offset by 0.5, 4, -0.5 at location of loop-entity
- spawn 10 of particle angry villager offset by 0.5, 4, -0.5 at location of loop-entity
- stop
- if "%{_技能}%" contains "電磁砲":
- if difference between {冷卻.%player%::電磁砲} and now is more than or equal to 12 second:
- delete {冷卻.%player%::電磁砲}
- if {冷卻.%player%::電磁砲} is set:
- send "&c&l《電磁砲》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::電磁砲} to now
- send "&e你使用了&c&l《電磁砲》"
- set {_particle電磁砲} to magic crit
- play raw sound "ambient.weather.thunder" at player with pitch 3 volume 2
- 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電磁砲} 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%::智慧} * 6 + {玩家資料.%player%::智慧} * 6
- if loop-entity isn't a player:
- apply slowness 5 to the loop-entity for 5 ticks
- wait 1.8 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《毒霧擴散》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::毒霧擴散} to now
- send "&b你發射了&6&l《毒霧擴散》"
- set {_毒霧擴散} to block 2 blocks in front player
- loop 20 times:
- spawn 100 of particle happy villager offset by 4, 2, -4 at location of {_毒霧擴散}
- loop entities in radius 6 around block at location of {_毒霧擴散}:
- if loop-entity isn't a player or a dropped item:
- apply slowness 1 to the loop-entity for 10 ticks
- play raw sound "mob.magmacube.jump" at player with pitch 1 volume 1
- make player damage loop-entity by ({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 1.25
- wait 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
- set {冷卻.%player%::虔誠奉獻} to now
- send "&e你使用了&c&l《虔誠奉獻》"
- play raw sound "random.levelup" at player with pitch 2 volume 2
- spawn 60 of particle happy villager offset by 3, 4, -3 at location of player
- damage player by 3.5
- loop entities in radius 6 of player:
- if loop-entity isn't a player or a dropped item:
- heal loop-entity by (({玩家資料.%player%::智慧} + {飾品狀態.%player%::智慧}) * 0.15) / (loop-entity's max health + {飾品狀態.%loop-entity%::血量增加}) * loop-entity's max health#治癒量/ 血量公式
- send "&e你已被 %player% 的&c&l《虔誠奉獻》&e治療了" to loop-entity
- spawn 30 of particle heart offset by 1, 1, -1 at location of loop-entity
- 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&l《戰舞曲》&e冷卻中,請稍後再使用"
- stop
- set {冷卻.%player%::戰舞曲} to now
- send "&e你使用了&c&l《戰舞曲》"
- play raw sound "mob.cow.hurt" at player with pitch 2 volume 2
- spawn 150 of particle red dust offset by 4, 4, -4 at location of player
- apply haste 2 to player for 60 seconds
- apply resistance 1 to player for 60 seconds
- loop entities in radius 5 of player:
- if loop-entity is a player:
- send "&e你已被 %player% 的&6&l《戰舞曲》&e提升能力了" to loop-entity
- apply speed 2 to loop-entity for 60 seconds
- apply haste 2 to loop-entity for 60 seconds
- apply resistance 1 to loop-entity for 60 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
- send "&e你使用了&c&l《行軍曲》"
- loop entities in radius 5 of player:
- if loop-entity is a player:
- play raw sound "mob.skeleton.death" at player with pitch 2 volume 2
- spawn 50 of particle happy villager offset by 2, 3, -2 at player
- set {冷卻.%loop-entity%::行軍曲} to now
- send "&e你已被 %player% 的&6&l《行軍曲》&e提升能力了" to 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%::智慧} * 0.25 + {飾品狀態.%attacker%::智慧} * 0.25 + {玩家資料.%attacker%::力量} + {飾品狀態.%attacker%::力量} + {玩家資料.%attacker%::敏捷} + {飾品狀態.%attacker%::敏捷}) * 0.15
- 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