Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on fishing:
- if "%fishing state%" is "CAUGHT_FISH":
- clear caught item
- on chat:
- cancel event
- if {pre.%player%} is 1:
- broadcast "&7[&cOWNER&7]&6&l%player%&b: &r%coloured message%"
- else:
- broadcast "&6&l%player%&b: &r%coloured message%"
- command /tihi:
- trigger:
- set {pre.%player%} to 1
- on rightclick:
- if name of held item is "§e§l天使の羽 §a§lLv1":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0
- block below location of player is air
- push player upwards at speed 0.5
- push player horizontally forwards at speed 0.7
- set {fall.%player%} to 1
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l天使の羽 §a§lLv2":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1
- block below location of player is air
- push player upwards at speed 0.5
- push player horizontally forwards at speed 0.7
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l大天使の羽 §a§lLv1":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0
- block below location of player is air
- push player upwards at speed 1
- push player horizontally forwards at speed 1.5
- set {fall.%player%} to 1
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l大天使の羽 §a§lLv2":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1
- block below location of player is air
- push player upwards at speed 1
- push player horizontally forwards at speed 1.5
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l主天使の羽 §a§lLv1":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0
- block below location of player is air
- push player upwards at speed 1.5
- push player horizontally forwards at speed 2
- set {fall.%player%} to 1
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l主天使の羽 §a§lLv2":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1
- block below location of player is air
- push player upwards at speed 1.5
- push player horizontally forwards at speed 2
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§e§l主天使の羽 §a§lLv3":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1 or 2
- block below location of player is air
- push player upwards at speed 1.5
- push player horizontally forwards at speed 2
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§c§l熾天使の羽":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- {fall.%player%} is 0 or 1 or 2 or 3
- block below location of player is air
- push player upwards at speed 2
- push player horizontally forwards at speed 3
- add 1 to {fall.%player%}
- while block below location of player is air:
- wait 3 ticks
- set {fall.%player%} to 0
- else if name of held item is "§c§l§n神の羽":
- if {fall.%player%} is not set:
- set {fall.%player%} to 0
- block below location of player is air
- push player upwards at speed 2
- push player horizontally forwards at speed 3
- command /feater:
- usage: /feater
- permission: skript.admin
- executable by: player
- trigger:
- give feather of Feather Falling 1 named "§e§l天使の羽 §a§lLv1" to player
- give feather of Feather Falling 1 named "§e§l天使の羽 §a§lLv2" to player
- give feather of Feather Falling 1 named "§e§l大天使の羽 §a§lLv1" to player
- give feather of Feather Falling 1 named "§e§l大天使の羽 §a§lLv2" to player
- give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv1" to player
- give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv2" to player
- give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv3" to player
- give feather of Feather Falling 1 named "§c§l熾天使の羽" to player
- command /featergod:
- usage: /feater god
- permission: skript.admin
- executable by: player
- trigger:
- give feather of Feather Falling 1 named "§c§l§n神の羽" to player
- on damage:
- victim has feather of Feather Falling
- damage was caused by fall
- cancel event
- on rightclick:
- block is a sign
- line 1 of clicked block is "§3§l=========="
- line 2 of clicked block is "§b§lスポーンポイント"
- line 3 of clicked block is "§a§l[右クリック]"
- line 4 of clicked block is "§3§l=========="
- execute console command "/spawnpoint %player%"
- message "<aqua>スポーンポイントを設定しました!"
- command "/playsound minecraft:block.note.pling master %player% ~ ~ ~ 1 2 1"
- on rightclick:
- block is a sign
- line 1 of clicked block is "§3§l=========="
- line 2 of clicked block is "§e§lログインボーナス"
- line 3 of clicked block is "§c§l[右クリック]"
- line 4 of clicked block is "§3§l=========="
- difference between {dailyreward.%player%.time} and now is less than 8 hours:
- send "&6ログインボーナスは8時間ごとに受け取れます!" to player
- stop
- give paper named "&6&lログインボーナス" with lore "&3&l╍╍━━═══[Status]═══━━╍╍","&6&lタイプ: &6&l[交換アイテム]","&a&l8時間ごとに看板からもらえる","&a&l色々なものに交換できる" and "&3&l╍╍━━════════════━━╍╍" to player
- broadcast "&6%player%さんがログインボーナスを受け取りました!"
- set {dailyreward.%player%.time} to now
- stop
- command /login:
- trigger:
- give paper named "&6&lログインボーナス" with lore "&3&l╍╍━━═══[Status]═══━━╍╍","&6&lタイプ: &6&l[交換アイテム]","&a&l8時間ごとに看板からもらえる","&a&l色々なものに交換できる" and "&3&l╍╍━━════════════━━╍╍" to player
- on damage:
- {damagelog.%attacker%} is 1
- wait a tick
- loop blocks in radius 1 around head of victim:
- add location of loop-block to {_blocks::*}
- set {_bl} to random element of {_blocks::*}
- set {damage.%attacker%} to {damage.%attacker%}*2
- set {damage2.%attacker%} to {damage.%attacker%}
- createHolo({_bl}, "&c&l-%{damage.%attacker%}%", 25 ticks)
- set {maxhpvic.%attacker%} to max health of victim * 2
- set {hpvic.%attacker%} to health of victim * 2
- send "%name of victim% &c&l-%{damage2.%attacker%}% &a&l%{maxhpvic.%attacker%}%/%{hpvic.%attacker%}% " to attacker
- command /damagelog [<string>]:
- trigger:
- if arg 1 is not set:
- if {damagelog.%player%} is 1:
- set {damagelog.%player%} to 0
- message "&6&lダメージログをオフにしました"
- else if {damagelog.%player%} is 0:
- set {damagelog.%player%} to 1
- message "&6&lダメージログをオンにしました"
- else if arg 1 is "on":
- set {damagelog.%player%} to 1
- message "&6&lダメージログをオンにしました"
- else if arg 1 is "off":
- set {damagelog.%player%} to 0
- message "&6&lダメージログをオフにしました"
- function createHolo(l: Location, t: Text, length: Timespan):
- create hologram "%{_t}%" at {_l} for {_length}
- on break:
- player do not have permission "skript.builder"
- cancel event
- on place:
- player do not have permission "skript.builder"
- cancel event
- on craft:
- cancel event
- on spread:
- cancel event
- on burn:
- cancel event
- on explosion prime:
- cancel event
- command /c:
- description: コマンドブロックを入手する
- usage: /c
- permission: skript.admin
- executable by: player
- trigger:
- give command block to player
- give redstone block to player
- command /en:
- description: エンダーチェストを開く
- usage: /en
- executable by: player
- trigger:
- open the player's ender chest to the player
- command "/playsound minecraft:block.enderchest.open voice %player% ~ ~ ~ 1 1 1"
- on command "/pl":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/plugins":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/?":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/help":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/bukkit:?":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on command "/bukkit:pl":
- if player doesn't have permission "skript.admin":
- cancel event
- message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
- on join:
- if {join.%player%} is 1:
- set the join message to "&e%player%さんがサーバーに参加しました。"
- set player tab name to "&7%player%"
- else:
- command "/tp %player% 0 4 0"
- set the join message to "&d%player%さんがサーバーに初参加しました。"
- wait a tick
- set {checkpoint.%player%} to location of player
- set {join.%player%} to 1
- on quit:
- set the quit message to "&e%player%さんがサーバーから退出しました。"
- on rightclick on anvil:
- block under the event-block is iron block
- cancel event
- if name of held item contains "&r&c&l":
- if {tool.%player%} is set:
- message "&c既に武器がセットされています"
- else if {tool.%player%} is not set:
- set {tool.%player%} to player's tool
- set {tool.name.%player%} to name of player's tool
- delete player's tool
- message "&a武器をセットしました"
- stop
- else if name of held item is "&c&l&n強化石":
- if {tool.%player%} is not set:
- message "&c武器がセットされていません"
- else:
- {tool.name.%player%} contains "&r&c&l"
- set {tool.name.%player%} to name of {tool.%player%}
- set {retool.name.%player%} to {tool.name.%player%}
- replace "&1" with "" in {tool.name.%player%}
- replace "&2" with "" in {tool.name.%player%}
- replace "&3" with "" in {tool.name.%player%}
- replace "&4" with "" in {tool.name.%player%}
- replace "&5" with "" in {tool.name.%player%}
- replace "&6" with "" in {tool.name.%player%}
- replace "&7" with "" in {tool.name.%player%}
- replace "&8" with "" in {tool.name.%player%}
- replace "&9" with "" in {tool.name.%player%}
- message "%{tool.name.%player%}%"
- if name of {tool.%player%} contains "10":
- message "&cこの武器はすでに強化値が10なのでこれ以上強化でません"
- message "&cこれ以上強化するには限界突破をしてください"
- else if {tool.name.%player%} contains "1":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l+1" with "&r&c&l+3" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l3"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l+1" with "&r&c&l+2" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l2"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&c&l+1" with "&r&c&l" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &c&l強化後 +&6&l0"
- else if {percent.%player%} is 10:
- replace "&r&c&l+1" with "&r&c&l" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
- else if {tool.name.%player%} contains "2":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l+2" with "&r&c&l+4" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l4"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l+2" with "&r&c&l+3" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l3"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&c&l+2" with "&r&c&l+1" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l1"
- else if {percent.%player%} is 10:
- replace "&r&c&l+2" with "&r&c&l" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
- else if {tool.name.%player%} contains "3":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l+3" with "&r&c&l+5" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l5"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l+3" with "&r&c&l+4" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l4"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&c&l+3" with "&r&c&l+2" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l2"
- else if {percent.%player%} is 10:
- replace "&r&c&l+3" with "&r&c&l+1" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l1"
- else if {tool.name.%player%} contains "4":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l+4" with "&r&c&l+6" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l6"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l+4" with "&r&c&l+5" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l5"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&c&l+4" with "&r&c&l+3" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l3"
- else if {percent.%player%} is 10:
- replace "&r&c&l+4" with "&r&c&l+2" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l2"
- else if {tool.name.%player%} contains "5":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l+5" with "&r&c&l+7" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l7"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l+5" with "&r&c&l+6" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l6"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&c&l+5" with "&r&c&l+4" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l4"
- else if {percent.%player%} is 10:
- replace "&r&c&l+5" with "&r&c&l+3" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l3"
- else if {tool.name.%player%} contains "6":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l+6" with "&r&c&l+8" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l8"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l+6" with "&r&c&l+7" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l7"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&c&l+6" with "&r&c&l+5" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l5"
- else if {percent.%player%} is 10:
- replace "&r&c&l+6" with "&r&c&l+4" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l4"
- else if {tool.name.%player%} contains "7":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l+7" with "&r&c&l+9" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l9"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l+7" with "&r&c&l+8" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l8"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&c&l+7" with "&r&c&l+6" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l6"
- else if {percent.%player%} is 10:
- replace "&r&c&l+7" with "&r&c&l+5" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l5"
- else if {tool.name.%player%} contains "8":
- message "%{tool.name.%player%}%"
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l+8" with "&r&c&l+10" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l10"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l+8" with "&r&c&l+9" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l9"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&c&l+8" with "&r&c&l+7" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l7"
- else if {percent.%player%} is 10:
- replace "&r&c&l+8" with "&r&c&l+6" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l6"
- else if {tool.name.%player%} contains "9":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l+9" with "&r&c&l+10" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l+9" with "&r&c&l+10" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&c&l+9" with "&r&c&l+8" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l8"
- else if {percent.%player%} is 10:
- replace "&r&c&l+9" with "&r&c&l+7" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l7"
- else:
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&c&l" with "&r&c&l+2" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l2"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&c&l" with "&r&c&l+1" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l1"
- else if {percent.%player%} is between 6 and 9:
- message "&3&l[強化失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
- else if {percent.%player%} is 10:
- message "&3&l[強化大失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
- if name of held item contains "&r&4&l":
- if {tool.%player%} is set:
- message "&c既に武器がセットされています"
- else if {tool.%player%} is not set:
- set {tool.%player%} to player's tool
- set {tool.name.%player%} to name of player's tool
- delete player's tool
- message "&a武器をセットしました"
- stop
- else if name of held item is "&c&l&n強化石":
- if {tool.%player%} is not set:
- message "&c武器がセットされていません"
- else:
- name of {tool.%player%} contains "&r&4&l"
- set {tool.name.%player%} to name of {tool.%player%}
- set {retool.name.%player%} to {tool.name.%player%}
- replace "&1" with "" in {tool.name.%player%}
- replace "&2" with "" in {tool.name.%player%}
- replace "&3" with "" in {tool.name.%player%}
- replace "&4" with "" in {tool.name.%player%}
- replace "&5" with "" in {tool.name.%player%}
- replace "&6" with "" in {tool.name.%player%}
- replace "&7" with "" in {tool.name.%player%}
- replace "&8" with "" in {tool.name.%player%}
- replace "&9" with "" in {tool.name.%player%}
- if name of {tool.%player%} contains "20":
- message "&cこの武器はすでに強化値が20なのでこれ以上強化でません"
- message "&cこれ以上強化するには限界突破をしてください"
- else if {tool.name.%player%} contains "10":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+10" with "&r&4&l+12" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l12"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+10" with "&r&4&l+11" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l11"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+10" with "&r&4&l+9" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l9"
- else if {percent.%player%} is 10:
- replace "&r&4&l+10" with "&r&4&l+8" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l8"
- else if {tool.name.%player%} contains "11":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+11" with "&r&4&l+13" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l13"
- else if {percent.%player%} is between 2 and 4:
- replace "&r&4&l+11" with "&r&4&l+12" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l12"
- else if {percent.%player%} is between 5 and 9:
- replace "&r&4&l+11" with "&r&4&l+10" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l10"
- else if {percent.%player%} is 10:
- replace "&r&4&l+11" with "&r&4&l+9" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l9"
- else if {tool.name.%player%} contains "12":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+12" with "&r&4&l+14" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l14"
- else if {percent.%player%} is between 2 and 4:
- replace "&r&4&l+12" with "&r&4&l+13" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l13"
- else if {percent.%player%} is between 5 and 9:
- replace "&r&4&l+12" with "&r&4&l+11" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l11"
- else if {percent.%player%} is 10:
- replace "&r&4&l+12" with "&r&4&l+10" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l10"
- else if {tool.name.%player%} contains "13":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+13" with "&r&4&l+15" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l15"
- else if {percent.%player%} is between 2 and 4:
- replace "&r&4&l+13" with "&r&4&l+14" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l14"
- else if {percent.%player%} is between 5 and 9:
- replace "&r&4&l+13" with "&r&4&l+12" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l12"
- else if {percent.%player%} is 10:
- replace "&r&4&l+13" with "&r&4&l+11" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l11"
- else if {tool.name.%player%} contains "14":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+14" with "&r&4&l+16" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l16"
- else if {percent.%player%} is between 2 and 4:
- replace "&r&4&l+14" with "&r&4&l+15" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l15"
- else if {percent.%player%} is between 5 and 9:
- replace "&r&4&l+14" with "&r&4&l+13" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l13"
- else if {percent.%player%} is 10:
- replace "&r&4&l+14" with "&r&4&l+12" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l12"
- else if {tool.name.%player%} contains "15":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+15" with "&r&4&l+17" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l17"
- else if {percent.%player%} is between 2 and 4:
- replace "&r&4&l+15" with "&r&4&l+16" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l16"
- else if {percent.%player%} is between 5 and 9:
- replace "&r&4&l+15" with "&r&4&l+14" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l14"
- else if {percent.%player%} is 10:
- replace "&r&4&l+15" with "&r&4&l+13" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l13"
- else if {tool.name.%player%} contains "16":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+16" with "&r&4&l+18" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l18"
- else if {percent.%player%} is between 2 and 4:
- replace "&r&4&l+16" with "&r&4&l+17" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l17"
- else if {percent.%player%} is between 5 and 9:
- replace "&r&4&l+16" with "&r&4&l+15" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l15"
- else if {percent.%player%} is 10:
- replace "&r&4&l+16" with "&r&4&l+14" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l14"
- else if {tool.name.%player%} contains "17":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+17" with "&r&4&l+19" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l19"
- else if {percent.%player%} is between 2 and 4:
- replace "&r&4&l+17" with "&r&4&l+18" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l18"
- else if {percent.%player%} is between 5 and 9:
- replace "&r&4&l+17" with "&r&4&l+16" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l16"
- else if {percent.%player%} is 10:
- replace "&r&4&l+17" with "&r&4&l+15" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l15"
- else if {tool.name.%player%} contains "18":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+18" with "&r&4&l+20" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l20"
- else if {percent.%player%} is between 2 and 4:
- replace "&r&4&l+18" with "&r&4&l+19" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l19"
- else if {percent.%player%} is between 5 and 9:
- replace "&r&4&l+18" with "&r&4&l+17" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l17"
- else if {percent.%player%} is 10:
- replace "&r&4&l+18" with "&r&4&l+16" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l16"
- else if {tool.name.%player%} contains "19":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+19" with "&r&4&l+20" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l20"
- else if {percent.%player%} is between 2 and 4:
- replace "&r&4&l+19" with "&r&4&l+20" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l20"
- else if {percent.%player%} is between 5 and 9:
- replace "&r&4&l+19" with "&r&4&l+19" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l19"
- else if {percent.%player%} is 10:
- replace "&r&4&l+19" with "&r&4&l+18" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l18"
- else if {tool.name.%player%} contains "1":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+1" with "&r&4&l+3" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l3"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+1" with "&r&4&l+2" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l2"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+1" with "&r&4&l" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &c&l強化後 +&6&l0"
- else if {percent.%player%} is 10:
- replace "&r&4&l+1" with "&r&4&l" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
- else if {tool.name.%player%} contains "2":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+2" with "&r&4&l+4" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l4"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+2" with "&r&4&l+3" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l3"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+2" with "&r&4&l+1" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l1"
- else if {percent.%player%} is 10:
- replace "&r&4&l+2" with "&r&4&l" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
- else if {tool.name.%player%} contains "3":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+3" with "&r&4&l+5" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l5"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+3" with "&r&4&l+4" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l4"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+3" with "&r&4&l+2" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l2"
- else if {percent.%player%} is 10:
- replace "&r&4&l+3" with "&r&4&l+1" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l1"
- else if {tool.name.%player%} contains "4":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+4" with "&r&4&l+6" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l6"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+4" with "&r&4&l+5" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l5"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+4" with "&r&4&l+3" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l3"
- else if {percent.%player%} is 10:
- replace "&r&4&l+4" with "&r&4&l+2" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l2"
- else if {tool.name.%player%} contains "5":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+5" with "&r&4&l+7" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l7"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+5" with "&r&4&l+6" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l6"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+5" with "&r&4&l+4" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l4"
- else if {percent.%player%} is 10:
- replace "&r&4&l+5" with "&r&4&l+3" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l3"
- else if {tool.name.%player%} contains "6":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+6" with "&r&4&l+8" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l8"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+6" with "&r&4&l+7" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l7"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+6" with "&r&4&l+5" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l5"
- else if {percent.%player%} is 10:
- replace "&r&4&l+6" with "&r&4&l+4" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l4"
- else if {tool.name.%player%} contains "7":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+7" with "&r&4&l+9" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l9"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+7" with "&r&4&l+8" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l8"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+7" with "&r&4&l+6" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l6"
- else if {percent.%player%} is 10:
- replace "&r&4&l+7" with "&r&4&l+5" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l5"
- else if {tool.name.%player%} contains "8":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+8" with "&r&4&l+10" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l10"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+8" with "&r&4&l+9" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l9"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+8" with "&r&4&l+7" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l7"
- else if {percent.%player%} is 10:
- replace "&r&4&l+8" with "&r&4&l+6" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l6"
- else if {tool.name.%player%} contains "9":
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l+9" with "&r&4&l+10" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l+9" with "&r&4&l+10" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
- else if {percent.%player%} is between 6 and 9:
- replace "&r&4&l+9" with "&r&4&l+8" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l8"
- else if {percent.%player%} is 10:
- replace "&r&4&l+9" with "&r&4&l+7" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&3&l[強化大失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l7"
- else:
- play sound "block.anvil.use" with pitch 2 at player
- remove 1 of held item from player
- set {percent.%player%} to random integer between 1 and 10
- if {percent.%player%} is 1:
- replace "&r&4&l" with "&r&4&l+2" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化大成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l2"
- else if {percent.%player%} is between 2 and 5:
- replace "&r&4&l" with "&r&4&l+1" in {retool.name.%player%}
- set the name of {tool.%player%} to {retool.name.%player%}
- message "&c&l[強化成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l1"
- else if {percent.%player%} is between 6 and 9:
- message "&3&l[強化失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
- else if {percent.%player%} is 10:
- message "&3&l[強化大失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
- else if name of held item is "&7&l強化リセット石":
- name of {tool.%player%} contains "+"
- message "&6&l武器強化をリセットしました"
- play sound "block.anvil.use" with pitch 2 at player
- set {tool.name.%player%} to name of {tool.%player%}
- replace "&r&c&l+1" with "&r&c&l" in {tool.name.%player%}
- replace "&r&c&l+2" with "&r&c&l" in {tool.name.%player%}
- replace "&r&c&l+3" with "&r&c&l" in {tool.name.%player%}
- replace "&r&c&l+4" with "&r&c&l" in {tool.name.%player%}
- replace "&r&c&l+5" with "&r&c&l" in {tool.name.%player%}
- replace "&r&c&l+6" with "&r&c&l" in {tool.name.%player%}
- replace "&r&c&l+7" with "&r&c&l" in {tool.name.%player%}
- replace "&r&c&l+8" with "&r&c&l" in {tool.name.%player%}
- replace "&r&c&l+9" with "&r&c&l" in {tool.name.%player%}
- replace "&r&c&l+10" with "&r&c&l" in {tool.name.%player%}
- replace "&r&4&l+10" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+11" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+12" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+13" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+14" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+15" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+16" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+17" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+18" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+19" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+20" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+1" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+2" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+3" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+4" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+5" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+6" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+7" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+8" with "&r&4&l" in {tool.name.%player%}
- replace "&r&4&l+9" with "&r&4&l" in {tool.name.%player%}
- set the name of {tool.%player%} to {tool.name.%player%}
- remove 1 of held item from player
- else if {tool.%player%} is set:
- give {tool.%player%} to player
- delete {tool.%player%}
- message "&a武器を戻しました"
- on rightclick on end portal frame:
- block under the event-block is iron block
- cancel event
- if name of held item contains "&r&c&l+10":
- if {tool2.%player%} is set:
- message "&c既に武器がセットされています"
- else if {tool2.%player%} is not set:
- set {tool2.%player%} to player's tool
- set {tool2.name.%player%} to name of player's tool
- delete player's tool
- message "&a武器をセットしました"
- stop
- else if name of held item is "&4&l&l限界突破石":
- if {tool2.%player%} is not set:
- message "&c武器がセットされていません"
- else:
- replace "&r&c&l+10" with "&r&4&l" in {tool2.name.%player%}
- set the name of {tool2.%player%} to {tool2.name.%player%}
- remove 1 of held item from player
- give {tool2.%player%} to player
- delete {tool2.%player%}
- message "&6&l武器を限界突破しました"
- play sound "block.anvil.use" with pitch 2 at player
- else if {tool2.%player%} is set:
- give {tool2.%player%} to player
- delete {tool2.%player%}
- message "&a武器を戻しました"
- on damage:
- if {skill.%attacker%} is 1:
- set {skilldamage.%attacker%} to damage + {ATTR.%attacker%}
- set {damage.%attacker%} to {skilldamage.%attacker%} * (100+{AttackBonus.%attacker%})/100
- set {skill.%attacker%} to 0
- send "Skill Do" to attacker
- set damage to {damage.%attacker%}
- else:
- set {damage.%attacker%} to damage * (100+{AttackBonus.%attacker%})/100
- set {damage2.%attacker%} to {damage.%attacker%}
- set damage to {damage.%attacker%}
- on tool change:
- delete {AttackBonus.%player%}
- if name of player's tool contains "&r&c&l":
- if name of player's tool contains "10":
- set {AttackBonus.%player%} to 10
- stop
- else if name of player's tool contains "1":
- set {AttackBonus.%player%} to 1
- else if name of player's tool contains "2":
- set {AttackBonus.%player%} to 2
- else if name of player's tool contains "3":
- set {AttackBonus.%player%} to 3
- else if name of player's tool contains "4":
- set {AttackBonus.%player%} to 4
- else if name of player's tool contains "5":
- set {AttackBonus.%player%} to 5
- else if name of player's tool contains "6":
- set {AttackBonus.%player%} to 6
- else if name of player's tool contains "7":
- set {AttackBonus.%player%} to 7
- else if name of player's tool contains "8":
- set {AttackBonus.%player%} to 8
- else if name of player's tool contains "9":
- set {AttackBonus.%player%} to 9
- if name of player's tool contains "&r&4&l":
- if name of player's tool contains "10":
- set {AttackBonus.%player%} to 10
- stop
- else if name of player's tool contains "1":
- set {AttackBonus.%player%} to 1
- else if name of player's tool contains "2":
- set {AttackBonus.%player%} to 2
- else if name of player's tool contains "3":
- set {AttackBonus.%player%} to 3
- else if name of player's tool contains "4":
- set {AttackBonus.%player%} to 4
- else if name of player's tool contains "5":
- set {AttackBonus.%player%} to 5
- else if name of player's tool contains "6":
- set {AttackBonus.%player%} to 6
- else if name of player's tool contains "7":
- set {AttackBonus.%player%} to 7
- else if name of player's tool contains "8":
- set {AttackBonus.%player%} to 8
- else if name of player's tool contains "9":
- set {AttackBonus.%player%} to 9
- else if name of player's tool contains "11":
- set {AttackBonus.%player%} to 11
- else if name of player's tool contains "12":
- set {AttackBonus.%player%} to 12
- else if name of player's tool contains "13":
- set {AttackBonus.%player%} to 13
- else if name of player's tool contains "14":
- set {AttackBonus.%player%} to 14
- else if name of player's tool contains "15":
- set {AttackBonus.%player%} to 15
- else if name of player's tool contains "16":
- set {AttackBonus.%player%} to 16
- else if name of player's tool contains "17":
- set {AttackBonus.%player%} to 17
- else if name of player's tool contains "18":
- set {AttackBonus.%player%} to 18
- else if name of player's tool contains "19":
- set {AttackBonus.%player%} to 19
- else if name of player's tool contains "20":
- set {AttackBonus.%player%} to 20
- else:
- set {AttackBonus.%player%} to 0
- options:
- count : 20
- on tool change:
- wait 1 tick
- set {defense.%player%} to 0
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's helmet contains "防御力:":
- set {_lore1} to line {_line} of lore of player's helmet
- stop loop
- add 1 to {_line}
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's chestplate contains "防御力:":
- set {_lore2} to line {_line} of lore of player's chestplate
- stop loop
- add 1 to {_line}
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's leggings contains "防御力:":
- set {_lore3} to line {_line} of lore of player's leggings
- stop loop
- add 1 to {_line}
- set {_line} to 1
- while {_line} is less than or equal to {@count}:
- if line {_line} of lore of player's boots contains "防御力:":
- set {_lore4} to line {_line} of lore of player's boots
- stop loop
- add 1 to {_line}
- set {_n} to 1
- loop 4 times:
- replace "§9§l防御力: " with "" in {_lore%{_n}%}
- set {_lore%{_n}%} to {_lore%{_n}%} parsed as number
- add {_lore%{_n}%} to {defense.%player%}
- add 1 to {_n}
- set {defense.%player%} to {defense.%player%} / 2
- on damage:
- victim is a player
- set {playerdamage.%victim%} to damage - {defense.%victim%}
- if {playerdamage.%victim%} is greater than or equal to 1:
- set damage to {playerdamage.%victim%}
- {damagelog.%victim%} is 1
- set {playerdamage.%victim%} to {playerdamage.%victim%}*2
- send "§c§l%{playerdamage.%victim%}%ダメージ" to victim
- else:
- set damage to 1
- {damagelog.%victim%} is 1
- send "§c§l1ダメージ" to victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement