SHARE
TWEET

Untitled

a guest Sep 11th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on break:
  2.     player do not have permission "skript.builder"
  3.     cancel event
  4.  
  5. on place:
  6.     player do not have permission "skript.builder"
  7.     cancel event
  8.  
  9. on craft:
  10.     cancel event
  11.  
  12. on spread:
  13.     cancel event
  14.  
  15. on burn:
  16.     cancel event
  17.  
  18. on explosion prime:
  19.     cancel event
  20.  
  21. command /pvp:
  22.     permission: skript.admin
  23.     trigger:
  24.         disable PvP
  25.  
  26. command /c:
  27.     description: コマンドブロックを入手する
  28.     usage: /c
  29.     permission: skript.admin
  30.     executable by: player
  31.     trigger:
  32.         give command block to player
  33.         give redstone block to player
  34.  
  35. command /en:
  36.     description: エンダーチェストを開く
  37.     usage: /en
  38.     executable by: player
  39.     trigger:
  40.         open the player's ender chest to the player
  41.         command "/playsound minecraft:block.enderchest.open voice %player% ~ ~ ~ 1 1 1"
  42.  
  43. on command "/pl":
  44.     if player doesn't have permission "skript.admin":
  45.         cancel event
  46.         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."
  47.  
  48. on command "/plugins":
  49.     if player doesn't have permission "skript.admin":
  50.         cancel event
  51.         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."
  52.  
  53. on command "/?":
  54.     if player doesn't have permission "skript.admin":
  55.         cancel event
  56.         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."
  57.  
  58. on command "/help":
  59.     cancel event
  60.     message "&e&l=====================[HELP]====================="
  61.     message "&a&lコマンド"
  62.     message "&6&l/die &a&l死ぬことができる"
  63.     message "&6&l/en &a&lエンダーチェストを開くことができる"
  64.     message "&6&l/damage log on/off &a&lダメージログの表示非表示を設定できる"
  65.     message "&6&l/info &a&l自分の情報がわかる"
  66.     message "&e&l================================================"
  67.  
  68. command /info:
  69.     trigger:
  70.         if {alldamage.%player%} is not set:
  71.             set {alldamage.%player%} to 0
  72.         else if {alldamage2.%player%} is not set:
  73.             set {alldamage2.%player%} to 0
  74.         else if {killcount.%player%} is not set:
  75.             set {killcount.%player%} to 0
  76.         message "&b&l=====================[INFO]====================="
  77.         message "&c&l総与ダメージ %{alldamage.%player%}%"
  78.         message "&c&l総被ダメージ %{alldamage2.%player%}%"
  79.         message "&a&l倒したMOBの敵の数 %{killcount.%player%}%"
  80.         message "&b&l================================================"
  81.  
  82. on death:
  83.     attacker is a player
  84.     add 1 to {killcount.%attacker%}
  85.  
  86. on command "/bukkit:?":
  87.     if player doesn't have permission "skript.admin":
  88.         cancel event
  89.         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."
  90.  
  91. on command "/bukkit:pl":
  92.     if player doesn't have permission "skript.admin":
  93.         cancel event
  94.         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."
  95.  
  96. on join:
  97.     if {firstjoin.%player%} is true:
  98.         set the join message to "&e%player%さんがサーバーに参加しました。"
  99.     else:
  100.         command "/tp %player% 0 4 0"
  101.         set the join message to "&d%player%さんがサーバーに初参加しました。"
  102.         wait a tick
  103.         set {checkpoint.%player%} to location of player
  104.         set {firstjoin.%player%} to true
  105.         {start} is true
  106.         give paper named "&b&l公開記念" with lore "&3&l╍╍━━═══[Status]═══━━╍╍","&6&lタイプ: &6&l[交換アイテム]","&a&lTASRPG2.5公開記念","&a&l色々なものに交換できる" and "&3&l╍╍━━════════════━━╍╍" to player
  107.         set {getkinen.%player%} to 1
  108.         set {alldamage.%player%} to 0
  109.         set {alldamage2.%player%} to 0
  110.         set {killcount.%player%} to 0
  111.  
  112. command /start:
  113.     permission: skript.admin
  114.     trigger:
  115.         set {start} to true
  116.  
  117. on quit:
  118.     set the quit message to "&e%player%さんがサーバーから退出しました。"
  119.  
  120. every 15 minutes:
  121.     loop all players:
  122.         loop-player do not have permission "skript.admin"
  123.         give paper named "&6&lタイムボーナスチケット" with lore "&3&l╍╍━━═══[Status]═══━━╍╍","&6&lタイプ: &6&l[交換アイテム]","&a&l15分ごとにもらえるチケット","&a&l色々なものに交換できる" and "&3&l╍╍━━════════════━━╍╍" to loop-player
  124.     broadcast "&a&lタイムボーナスチケットを配布しました"
  125.  
  126. command /fakemute <player>:
  127.    permission: skript.fakemute
  128.    trigger:
  129.       {fakemute.%arg' uuid%} is set:
  130.          delete {NoChat.%arg' uuid%}
  131.          send "%arg%&7のチャットを許可"
  132.          stop
  133.       {NoChat.%arg' uuid%} is not set:
  134.          set {NoChat.%arg' uuid%} to 1
  135.          send "%arg%&7のチャットを禁止"
  136.          stop
  137.  
  138. on command:
  139.     sender is player:
  140.         {krsk.cmdlog} is true:
  141.             send "&7[CMD]%sender%: /%full command%" to ops
  142.  
  143. command /cmdlog:
  144.     permission: op
  145.     trigger:
  146.         {krsk.cmdlog} is true:
  147.             set {krsk.cmdlog} to false
  148.             send "&7[&aCMDLOG&7]:&bコマンドログを&c非表示&bにしました"
  149.             stop
  150.         set {krsk.cmdlog} to true
  151.         send "&7[&aCMDLOG&7]:&bコマンドログを&a表示&bにしました"
  152.  
  153. command /die:
  154.     trigger:
  155.         execute console command "/kill %player%"
  156.  
  157. on rightclick:
  158.     block is a sign
  159.     line 1 of clicked block is "§3§l=========="
  160.     line 2 of clicked block is "§b§lスポーンポイント"
  161.     line 3 of clicked block is "§a§l[右クリック]"
  162.     line 4 of clicked block is "§3§l=========="
  163.     execute console command "/spawnpoint %player%"
  164.     message "<aqua>スポーンポイントを設定しました!"
  165.     execute console command "/playsound minecraft:block.note.pling master %player% ~ ~ ~ 1 2 1"
  166.  
  167. on rightclick:
  168.     block is a sign
  169.     line 1 of clicked block is "§3§l=========="
  170.     line 2 of clicked block is "§e§lログインボーナス"
  171.     line 3 of clicked block is "§c§l[右クリック]"
  172.     line 4 of clicked block is "§3§l=========="
  173.     difference between {dailyreward.%player%.time} and now is less than 8 hours:
  174.         send "&6ログインボーナスは8時間ごとに受け取れます!" to player
  175.         stop
  176.     give paper named "&6&lログインボーナス" with lore "&3&l╍╍━━═══[Status]═══━━╍╍","&6&lタイプ: &6&l[交換アイテム]","&a&l8時間ごとに看板からもらえる","&a&l色々なものに交換できる" and "&3&l╍╍━━════════════━━╍╍" to player
  177.     broadcast "&6%player%さんがログインボーナスを受け取りました!"
  178.     set {dailyreward.%player%.time} to now
  179.     stop
  180.  
  181. command /votedo <player>:
  182.     executable by: console
  183.     trigger:
  184.         give paper named "&c&l投票ボーナス" with lore "&3&l╍╍━━═══[Status]═══━━╍╍","&6&lタイプ: &6&l[交換アイテム]","&a&l投票するともらえる","&a&l色々なものに交換できる" and "&3&l╍╍━━════════════━━╍╍" to arg 1
  185.  
  186. on chat:
  187.     cancel event
  188.     if {pre.%player%} is 1:
  189.         broadcast "&7[&cOWNER&7] &6&l%player%&b: &r%message%"
  190.         stop
  191.     if {pre.%player%} is 2:
  192.         broadcast "&7[&9Builder&7] &6&l%player%&b: &r%message%"
  193.         stop
  194.     if {pre.%player%} is 3:
  195.         broadcast "&7[&aSupporter&7] &6&l%player%&b: &r%message%"
  196.         stop
  197.     else:
  198.         broadcast "&6&l%player%&b: &r%message%"
  199.  
  200. command /preset [<player>] [<number>]:
  201.     permission: prefix.set
  202.     usage: /setprefix
  203.     trigger:
  204.         set {pre.%arg-1%} to arg-2
  205.  
  206. command /predel [<player>]:
  207.     permission: prefix.set
  208.     usage: /setprefix
  209.     trigger:
  210.         delete {pre.%arg-1%}
  211.  
  212. command /damagelog [<string>]:
  213.     trigger:
  214.         if arg 1 is not set:
  215.             if {damagelog.%player%} is 1:
  216.                 set {damagelog.%player%} to 0
  217.                 message "&6&lダメージログをオフにしました"
  218.             else:
  219.                 set {damagelog.%player%} to 1
  220.                 message "&6&lダメージログをオンにしました"
  221.         else if arg 1 is "on":
  222.             set {damagelog.%player%} to 1
  223.             message "&6&lダメージログをオンにしました"
  224.         else if arg 1 is "off":
  225.             set {damagelog.%player%} to 0
  226.             message "&6&lダメージログをオフにしました"
  227.  
  228. on rightclick:
  229.     set {maxhpplay.%player%} to max health of player
  230.     player's health is not {maxhpplay.%player%}
  231.     if name of held item is "&c&l回復結晶 &6&lLv.1":
  232.         add 5 to the player's health
  233.         remove 1 of held item from player
  234.     if name of held item is "&c&l回復結晶 &6&lLv.2":
  235.         add 10 to the player's health
  236.         remove 1 of held item from player
  237.     if name of held item is "&c&l回復結晶 &6&lLv.3":
  238.         add 15 to the player's health
  239.         remove 1 of held item from player
  240.     if name of held item is "&c&l回復結晶 &6&lLv.4":
  241.         add 20 to the player's health
  242.         remove 1 of held item from player
  243.  
  244. on rightclick on anvil:
  245.     block under the event-block is iron block
  246.     cancel event
  247.     if name of held item contains "&r&c&l":
  248.         if {tool.%player%} is set:
  249.             message "&c既に武器がセットされています"
  250.         else if {tool.%player%} is not set:
  251.             set {tool.%player%} to player's tool
  252.             set {tool.name.%player%} to name of player's tool
  253.             delete player's tool
  254.             message "&a武器をセットしました"
  255.             stop
  256.     else if name of held item is "&c&l&n強化石":
  257.         if {tool.%player%} is not set:
  258.             message "&c武器がセットされていません"
  259.         else:
  260.             {tool.name.%player%} contains "&r&c&l"
  261.             set {tool.name.%player%} to name of {tool.%player%}
  262.             set {retool.name.%player%} to {tool.name.%player%}
  263.             replace "&1" with "" in {tool.name.%player%}
  264.             replace "&2" with "" in {tool.name.%player%}
  265.             replace "&3" with "" in {tool.name.%player%}
  266.             replace "&4" with "" in {tool.name.%player%}
  267.             replace "&5" with "" in {tool.name.%player%}
  268.             replace "&6" with "" in {tool.name.%player%}
  269.             replace "&7" with "" in {tool.name.%player%}
  270.             replace "&8" with "" in {tool.name.%player%}
  271.             replace "&9" with "" in {tool.name.%player%}
  272.             if name of {tool.%player%} contains "10":
  273.                 message "&cこの武器はすでに強化値が10なのでこれ以上強化でません"
  274.                 message "&cこれ以上強化するには限界突破をしてください"
  275.             else if {tool.name.%player%} contains "1":
  276.                 play sound "block.anvil.use" with pitch 2 at player
  277.                 remove 1 of held item from player
  278.                 set {percent.%player%} to random integer between 1 and 10
  279.                 if {percent.%player%} is 1:
  280.                     replace "&r&c&l+1" with "&r&c&l+3" in {retool.name.%player%}
  281.                     set the name of {tool.%player%} to {retool.name.%player%}
  282.                     message "&c&l[強化大成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l3"
  283.                 else if {percent.%player%} is between 2 and 5:
  284.                     replace "&r&c&l+1" with "&r&c&l+2" in {retool.name.%player%}
  285.                     set the name of {tool.%player%} to {retool.name.%player%}
  286.                     message "&c&l[強化成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l2"
  287.                 else if {percent.%player%} is between 6 and 9:
  288.                     replace "&r&c&l+1" with "&r&c&l" in {retool.name.%player%}
  289.                     set the name of {tool.%player%} to {retool.name.%player%}
  290.                     message "&3&l[強化失敗] &c&l強化後 +&6&l0"
  291.                 else if {percent.%player%} is 10:
  292.                     replace "&r&c&l+1" with "&r&c&l" in {retool.name.%player%}
  293.                     set the name of {tool.%player%} to {retool.name.%player%}
  294.                     message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  295.             else if {tool.name.%player%} contains "2":
  296.                 play sound "block.anvil.use" with pitch 2 at player
  297.                 remove 1 of held item from player
  298.                 set {percent.%player%} to random integer between 1 and 10
  299.                 if {percent.%player%} is 1:
  300.                     replace "&r&c&l+2" with "&r&c&l+4" in {retool.name.%player%}
  301.                     set the name of {tool.%player%} to {retool.name.%player%}
  302.                     message "&c&l[強化大成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l4"
  303.                 else if {percent.%player%} is between 2 and 5:
  304.                     replace "&r&c&l+2" with "&r&c&l+3" in {retool.name.%player%}
  305.                     set the name of {tool.%player%} to {retool.name.%player%}
  306.                     message "&c&l[強化成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l3"
  307.                 else if {percent.%player%} is between 6 and 9:
  308.                     replace "&r&c&l+2" with "&r&c&l+1" in {retool.name.%player%}
  309.                     set the name of {tool.%player%} to {retool.name.%player%}
  310.                     message "&3&l[強化失敗] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l1"
  311.                 else if {percent.%player%} is 10:
  312.                     replace "&r&c&l+2" with "&r&c&l" in {retool.name.%player%}
  313.                     set the name of {tool.%player%} to {retool.name.%player%}
  314.                     message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  315.             else if {tool.name.%player%} contains "3":
  316.                 play sound "block.anvil.use" with pitch 2 at player
  317.                 remove 1 of held item from player
  318.                 set {percent.%player%} to random integer between 1 and 10
  319.                 if {percent.%player%} is 1:
  320.                     replace "&r&c&l+3" with "&r&c&l+5" in {retool.name.%player%}
  321.                     set the name of {tool.%player%} to {retool.name.%player%}
  322.                     message "&c&l[強化大成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l5"
  323.                 else if {percent.%player%} is between 2 and 5:
  324.                     replace "&r&c&l+3" with "&r&c&l+4" in {retool.name.%player%}
  325.                     set the name of {tool.%player%} to {retool.name.%player%}
  326.                     message "&c&l[強化成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l4"
  327.                 else if {percent.%player%} is between 6 and 9:
  328.                     replace "&r&c&l+3" with "&r&c&l+2" in {retool.name.%player%}
  329.                     set the name of {tool.%player%} to {retool.name.%player%}
  330.                     message "&3&l[強化失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l2"
  331.                 else if {percent.%player%} is 10:
  332.                     replace "&r&c&l+3" with "&r&c&l+1" in {retool.name.%player%}
  333.                     set the name of {tool.%player%} to {retool.name.%player%}
  334.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l1"
  335.             else if {tool.name.%player%} contains "4":
  336.                 play sound "block.anvil.use" with pitch 2 at player
  337.                 remove 1 of held item from player
  338.                 set {percent.%player%} to random integer between 1 and 10
  339.                 if {percent.%player%} is 1:
  340.                     replace "&r&c&l+4" with "&r&c&l+6" in {retool.name.%player%}
  341.                     set the name of {tool.%player%} to {retool.name.%player%}
  342.                     message "&c&l[強化大成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l6"
  343.                 else if {percent.%player%} is between 2 and 5:
  344.                     replace "&r&c&l+4" with "&r&c&l+5" in {retool.name.%player%}
  345.                     set the name of {tool.%player%} to {retool.name.%player%}
  346.                     message "&c&l[強化成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l5"
  347.                 else if {percent.%player%} is between 6 and 9:
  348.                     replace "&r&c&l+4" with "&r&c&l+3" in {retool.name.%player%}
  349.                     set the name of {tool.%player%} to {retool.name.%player%}
  350.                     message "&3&l[強化失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l3"
  351.                 else if {percent.%player%} is 10:
  352.                     replace "&r&c&l+4" with "&r&c&l+2" in {retool.name.%player%}
  353.                     set the name of {tool.%player%} to {retool.name.%player%}
  354.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l2"
  355.             else if {tool.name.%player%} contains "5":
  356.                 play sound "block.anvil.use" with pitch 2 at player
  357.                 remove 1 of held item from player
  358.                 set {percent.%player%} to random integer between 1 and 10
  359.                 if {percent.%player%} is 1:
  360.                     replace "&r&c&l+5" with "&r&c&l+7" in {retool.name.%player%}
  361.                     set the name of {tool.%player%} to {retool.name.%player%}
  362.                     message "&c&l[強化大成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l7"
  363.                 else if {percent.%player%} is between 2 and 5:
  364.                     replace "&r&c&l+5" with "&r&c&l+6" in {retool.name.%player%}
  365.                     set the name of {tool.%player%} to {retool.name.%player%}
  366.                     message "&c&l[強化成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l6"
  367.                 else if {percent.%player%} is between 6 and 9:
  368.                     replace "&r&c&l+5" with "&r&c&l+4" in {retool.name.%player%}
  369.                     set the name of {tool.%player%} to {retool.name.%player%}
  370.                     message "&3&l[強化失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l4"
  371.                 else if {percent.%player%} is 10:
  372.                     replace "&r&c&l+5" with "&r&c&l+3" in {retool.name.%player%}
  373.                     set the name of {tool.%player%} to {retool.name.%player%}
  374.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l3"
  375.             else if {tool.name.%player%} contains "6":
  376.                 play sound "block.anvil.use" with pitch 2 at player
  377.                 remove 1 of held item from player
  378.                 set {percent.%player%} to random integer between 1 and 10
  379.                 if {percent.%player%} is 1:
  380.                     replace "&r&c&l+6" with "&r&c&l+8" in {retool.name.%player%}
  381.                     set the name of {tool.%player%} to {retool.name.%player%}
  382.                     message "&c&l[強化大成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l8"
  383.                 else if {percent.%player%} is between 2 and 5:
  384.                     replace "&r&c&l+6" with "&r&c&l+7" in {retool.name.%player%}
  385.                     set the name of {tool.%player%} to {retool.name.%player%}
  386.                     message "&c&l[強化成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l7"
  387.                 else if {percent.%player%} is between 6 and 9:
  388.                     replace "&r&c&l+6" with "&r&c&l+5" in {retool.name.%player%}
  389.                     set the name of {tool.%player%} to {retool.name.%player%}
  390.                     message "&3&l[強化失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l5"
  391.                 else if {percent.%player%} is 10:
  392.                     replace "&r&c&l+6" with "&r&c&l+4" in {retool.name.%player%}
  393.                     set the name of {tool.%player%} to {retool.name.%player%}
  394.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l4"
  395.             else if {tool.name.%player%} contains "7":
  396.                 play sound "block.anvil.use" with pitch 2 at player
  397.                 remove 1 of held item from player
  398.                 set {percent.%player%} to random integer between 1 and 10
  399.                 if {percent.%player%} is 1:
  400.                     replace "&r&c&l+7" with "&r&c&l+9" in {retool.name.%player%}
  401.                     set the name of {tool.%player%} to {retool.name.%player%}
  402.                     message "&c&l[強化大成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l9"
  403.                 else if {percent.%player%} is between 2 and 5:
  404.                     replace "&r&c&l+7" with "&r&c&l+8" in {retool.name.%player%}
  405.                     set the name of {tool.%player%} to {retool.name.%player%}
  406.                     message "&c&l[強化成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l8"
  407.                 else if {percent.%player%} is between 6 and 9:
  408.                     replace "&r&c&l+7" with "&r&c&l+6" in {retool.name.%player%}
  409.                     set the name of {tool.%player%} to {retool.name.%player%}
  410.                     message "&3&l[強化失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l6"
  411.                 else if {percent.%player%} is 10:
  412.                     replace "&r&c&l+7" with "&r&c&l+5" in {retool.name.%player%}
  413.                     set the name of {tool.%player%} to {retool.name.%player%}
  414.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l5"
  415.             else if {tool.name.%player%} contains "8":
  416.                 message "%{tool.name.%player%}%"
  417.                 play sound "block.anvil.use" with pitch 2 at player
  418.                 remove 1 of held item from player
  419.                 set {percent.%player%} to random integer between 1 and 10
  420.                 if {percent.%player%} is 1:
  421.                     replace "&r&c&l+8" with "&r&c&l+10" in {retool.name.%player%}
  422.                     set the name of {tool.%player%} to {retool.name.%player%}
  423.                     message "&c&l[強化大成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l10"
  424.                 else if {percent.%player%} is between 2 and 5:
  425.                     replace "&r&c&l+8" with "&r&c&l+9" in {retool.name.%player%}
  426.                     set the name of {tool.%player%} to {retool.name.%player%}
  427.                     message "&c&l[強化成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l9"
  428.                 else if {percent.%player%} is between 6 and 9:
  429.                     replace "&r&c&l+8" with "&r&c&l+7" in {retool.name.%player%}
  430.                     set the name of {tool.%player%} to {retool.name.%player%}
  431.                     message "&3&l[強化失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l7"
  432.                 else if {percent.%player%} is 10:
  433.                     replace "&r&c&l+8" with "&r&c&l+6" in {retool.name.%player%}
  434.                     set the name of {tool.%player%} to {retool.name.%player%}
  435.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l6"
  436.             else if {tool.name.%player%} contains "9":
  437.                 play sound "block.anvil.use" with pitch 2 at player
  438.                 remove 1 of held item from player
  439.                 set {percent.%player%} to random integer between 1 and 10
  440.                 if {percent.%player%} is 1:
  441.                     replace "&r&c&l+9" with "&r&c&l+10" in {retool.name.%player%}
  442.                     set the name of {tool.%player%} to {retool.name.%player%}
  443.                     message "&c&l[強化大成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  444.                 else if {percent.%player%} is between 2 and 5:
  445.                     replace "&r&c&l+9" with "&r&c&l+10" in {retool.name.%player%}
  446.                     set the name of {tool.%player%} to {retool.name.%player%}
  447.                     message "&c&l[強化成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  448.                 else if {percent.%player%} is between 6 and 9:
  449.                     replace "&r&c&l+9" with "&r&c&l+8" in {retool.name.%player%}
  450.                     set the name of {tool.%player%} to {retool.name.%player%}
  451.                     message "&3&l[強化失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l8"
  452.                 else if {percent.%player%} is 10:
  453.                     replace "&r&c&l+9" with "&r&c&l+7" in {retool.name.%player%}
  454.                     set the name of {tool.%player%} to {retool.name.%player%}
  455.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l7"
  456.             else:
  457.                 play sound "block.anvil.use" with pitch 2 at player
  458.                 remove 1 of held item from player
  459.                 set {percent.%player%} to random integer between 1 and 10
  460.                 if {percent.%player%} is 1:
  461.                     replace "&r&c&l" with "&r&c&l+2" in {retool.name.%player%}
  462.                     set the name of {tool.%player%} to {retool.name.%player%}
  463.                     message "&c&l[強化大成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l2"
  464.                 else if {percent.%player%} is between 2 and 5:
  465.                     replace "&r&c&l" with "&r&c&l+1" in {retool.name.%player%}
  466.                     set the name of {tool.%player%} to {retool.name.%player%}
  467.                     message "&c&l[強化成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l1"
  468.                 else if {percent.%player%} is between 6 and 9:
  469.                     message "&3&l[強化失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  470.                 else if {percent.%player%} is 10:
  471.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  472.     if name of held item contains "&r&4&l":
  473.         if {tool.%player%} is set:
  474.             message "&c既に武器がセットされています"
  475.         else if {tool.%player%} is not set:
  476.             set {tool.%player%} to player's tool
  477.             set {tool.name.%player%} to name of player's tool
  478.             delete player's tool
  479.             message "&a武器をセットしました"
  480.             stop
  481.     else if name of held item is "&c&l&n強化石":
  482.         if {tool.%player%} is not set:
  483.             message "&c武器がセットされていません"
  484.         else:
  485.             name of {tool.%player%} contains "&r&4&l"
  486.             set {tool.name.%player%} to name of {tool.%player%}
  487.             set {retool.name.%player%} to {tool.name.%player%}
  488.             replace "&1" with "" in {tool.name.%player%}
  489.             replace "&2" with "" in {tool.name.%player%}
  490.             replace "&3" with "" in {tool.name.%player%}
  491.             replace "&4" with "" in {tool.name.%player%}
  492.             replace "&5" with "" in {tool.name.%player%}
  493.             replace "&6" with "" in {tool.name.%player%}
  494.             replace "&7" with "" in {tool.name.%player%}
  495.             replace "&8" with "" in {tool.name.%player%}
  496.             replace "&9" with "" in {tool.name.%player%}
  497.             if name of {tool.%player%} contains "20":
  498.                 message "&cこの武器はすでに強化値が20なのでこれ以上強化でません"
  499.                 message "&cこれ以上強化するには限界突破をしてください"
  500.             else if {tool.name.%player%} contains "10":
  501.                 play sound "block.anvil.use" with pitch 2 at player
  502.                 remove 1 of held item from player
  503.                 set {percent.%player%} to random integer between 1 and 10
  504.                 if {percent.%player%} is 1:
  505.                     replace "&r&4&l+10" with "&r&4&l+12" in {retool.name.%player%}
  506.                     set the name of {tool.%player%} to {retool.name.%player%}
  507.                     message "&c&l[強化大成功] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l12"
  508.                 else if {percent.%player%} is between 2 and 5:
  509.                     replace "&r&4&l+10" with "&r&4&l+11" in {retool.name.%player%}
  510.                     set the name of {tool.%player%} to {retool.name.%player%}
  511.                     message "&c&l[強化成功] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l11"
  512.                 else if {percent.%player%} is between 6 and 9:
  513.                     replace "&r&4&l+10" with "&r&4&l+9" in {retool.name.%player%}
  514.                     set the name of {tool.%player%} to {retool.name.%player%}
  515.                     message "&3&l[強化失敗] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l9"
  516.                 else if {percent.%player%} is 10:
  517.                     replace "&r&4&l+10" with "&r&4&l+8" in {retool.name.%player%}
  518.                     set the name of {tool.%player%} to {retool.name.%player%}
  519.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l8"
  520.             else if {tool.name.%player%} contains "11":
  521.                 play sound "block.anvil.use" with pitch 2 at player
  522.                 remove 1 of held item from player
  523.                 set {percent.%player%} to random integer between 1 and 10
  524.                 if {percent.%player%} is 1:
  525.                     replace "&r&4&l+11" with "&r&4&l+13" in {retool.name.%player%}
  526.                     set the name of {tool.%player%} to {retool.name.%player%}
  527.                     message "&c&l[強化大成功] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l13"
  528.                 else if {percent.%player%} is between 2 and 4:
  529.                     replace "&r&4&l+11" with "&r&4&l+12" in {retool.name.%player%}
  530.                     set the name of {tool.%player%} to {retool.name.%player%}
  531.                     message "&c&l[強化成功] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l12"
  532.                 else if {percent.%player%} is between 5 and 9:
  533.                     replace "&r&4&l+11" with "&r&4&l+10" in {retool.name.%player%}
  534.                     set the name of {tool.%player%} to {retool.name.%player%}
  535.                     message "&3&l[強化失敗] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l10"
  536.                 else if {percent.%player%} is 10:
  537.                     replace "&r&4&l+11" with "&r&4&l+9" in {retool.name.%player%}
  538.                     set the name of {tool.%player%} to {retool.name.%player%}
  539.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l9"
  540.             else if {tool.name.%player%} contains "12":
  541.                 play sound "block.anvil.use" with pitch 2 at player
  542.                 remove 1 of held item from player
  543.                 set {percent.%player%} to random integer between 1 and 10
  544.                 if {percent.%player%} is 1:
  545.                     replace "&r&4&l+12" with "&r&4&l+14" in {retool.name.%player%}
  546.                     set the name of {tool.%player%} to {retool.name.%player%}
  547.                     message "&c&l[強化大成功] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l14"
  548.                 else if {percent.%player%} is between 2 and 4:
  549.                     replace "&r&4&l+12" with "&r&4&l+13" in {retool.name.%player%}
  550.                     set the name of {tool.%player%} to {retool.name.%player%}
  551.                     message "&c&l[強化成功] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l13"
  552.                 else if {percent.%player%} is between 5 and 9:
  553.                     replace "&r&4&l+12" with "&r&4&l+11" in {retool.name.%player%}
  554.                     set the name of {tool.%player%} to {retool.name.%player%}
  555.                     message "&3&l[強化失敗] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l11"
  556.                 else if {percent.%player%} is 10:
  557.                     replace "&r&4&l+12" with "&r&4&l+10" in {retool.name.%player%}
  558.                     set the name of {tool.%player%} to {retool.name.%player%}
  559.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l10"
  560.             else if {tool.name.%player%} contains "13":
  561.                 play sound "block.anvil.use" with pitch 2 at player
  562.                 remove 1 of held item from player
  563.                 set {percent.%player%} to random integer between 1 and 10
  564.                 if {percent.%player%} is 1:
  565.                     replace "&r&4&l+13" with "&r&4&l+15" in {retool.name.%player%}
  566.                     set the name of {tool.%player%} to {retool.name.%player%}
  567.                     message "&c&l[強化大成功] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l15"
  568.                 else if {percent.%player%} is between 2 and 4:
  569.                     replace "&r&4&l+13" with "&r&4&l+14" in {retool.name.%player%}
  570.                     set the name of {tool.%player%} to {retool.name.%player%}
  571.                     message "&c&l[強化成功] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l14"
  572.                 else if {percent.%player%} is between 5 and 9:
  573.                     replace "&r&4&l+13" with "&r&4&l+12" in {retool.name.%player%}
  574.                     set the name of {tool.%player%} to {retool.name.%player%}
  575.                     message "&3&l[強化失敗] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l12"
  576.                 else if {percent.%player%} is 10:
  577.                     replace "&r&4&l+13" with "&r&4&l+11" in {retool.name.%player%}
  578.                     set the name of {tool.%player%} to {retool.name.%player%}
  579.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l11"
  580.             else if {tool.name.%player%} contains "14":
  581.                 play sound "block.anvil.use" with pitch 2 at player
  582.                 remove 1 of held item from player
  583.                 set {percent.%player%} to random integer between 1 and 10
  584.                 if {percent.%player%} is 1:
  585.                     replace "&r&4&l+14" with "&r&4&l+16" in {retool.name.%player%}
  586.                     set the name of {tool.%player%} to {retool.name.%player%}
  587.                     message "&c&l[強化大成功] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l16"
  588.                 else if {percent.%player%} is between 2 and 4:
  589.                     replace "&r&4&l+14" with "&r&4&l+15" in {retool.name.%player%}
  590.                     set the name of {tool.%player%} to {retool.name.%player%}
  591.                     message "&c&l[強化成功] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l15"
  592.                 else if {percent.%player%} is between 5 and 9:
  593.                     replace "&r&4&l+14" with "&r&4&l+13" in {retool.name.%player%}
  594.                     set the name of {tool.%player%} to {retool.name.%player%}
  595.                     message "&3&l[強化失敗] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l13"
  596.                 else if {percent.%player%} is 10:
  597.                     replace "&r&4&l+14" with "&r&4&l+12" in {retool.name.%player%}
  598.                     set the name of {tool.%player%} to {retool.name.%player%}
  599.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l12"
  600.             else if {tool.name.%player%} contains "15":
  601.                 play sound "block.anvil.use" with pitch 2 at player
  602.                 remove 1 of held item from player
  603.                 set {percent.%player%} to random integer between 1 and 10
  604.                 if {percent.%player%} is 1:
  605.                     replace "&r&4&l+15" with "&r&4&l+17" in {retool.name.%player%}
  606.                     set the name of {tool.%player%} to {retool.name.%player%}
  607.                     message "&c&l[強化大成功] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l17"
  608.                 else if {percent.%player%} is between 2 and 4:
  609.                     replace "&r&4&l+15" with "&r&4&l+16" in {retool.name.%player%}
  610.                     set the name of {tool.%player%} to {retool.name.%player%}
  611.                     message "&c&l[強化成功] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l16"
  612.                 else if {percent.%player%} is between 5 and 9:
  613.                     replace "&r&4&l+15" with "&r&4&l+14" in {retool.name.%player%}
  614.                     set the name of {tool.%player%} to {retool.name.%player%}
  615.                     message "&3&l[強化失敗] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l14"
  616.                 else if {percent.%player%} is 10:
  617.                     replace "&r&4&l+15" with "&r&4&l+13" in {retool.name.%player%}
  618.                     set the name of {tool.%player%} to {retool.name.%player%}
  619.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l13"
  620.             else if {tool.name.%player%} contains "16":
  621.                 play sound "block.anvil.use" with pitch 2 at player
  622.                 remove 1 of held item from player
  623.                 set {percent.%player%} to random integer between 1 and 10
  624.                 if {percent.%player%} is 1:
  625.                     replace "&r&4&l+16" with "&r&4&l+18" in {retool.name.%player%}
  626.                     set the name of {tool.%player%} to {retool.name.%player%}
  627.                     message "&c&l[強化大成功] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l18"
  628.                 else if {percent.%player%} is between 2 and 4:
  629.                     replace "&r&4&l+16" with "&r&4&l+17" in {retool.name.%player%}
  630.                     set the name of {tool.%player%} to {retool.name.%player%}
  631.                     message "&c&l[強化成功] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l17"
  632.                 else if {percent.%player%} is between 5 and 9:
  633.                     replace "&r&4&l+16" with "&r&4&l+15" in {retool.name.%player%}
  634.                     set the name of {tool.%player%} to {retool.name.%player%}
  635.                     message "&3&l[強化失敗] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l15"
  636.                 else if {percent.%player%} is 10:
  637.                     replace "&r&4&l+16" with "&r&4&l+14" in {retool.name.%player%}
  638.                     set the name of {tool.%player%} to {retool.name.%player%}
  639.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l14"
  640.             else if {tool.name.%player%} contains "17":
  641.                 play sound "block.anvil.use" with pitch 2 at player
  642.                 remove 1 of held item from player
  643.                 set {percent.%player%} to random integer between 1 and 10
  644.                 if {percent.%player%} is 1:
  645.                     replace "&r&4&l+17" with "&r&4&l+19" in {retool.name.%player%}
  646.                     set the name of {tool.%player%} to {retool.name.%player%}
  647.                     message "&c&l[強化大成功] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l19"
  648.                 else if {percent.%player%} is between 2 and 4:
  649.                     replace "&r&4&l+17" with "&r&4&l+18" in {retool.name.%player%}
  650.                     set the name of {tool.%player%} to {retool.name.%player%}
  651.                     message "&c&l[強化成功] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l18"
  652.                 else if {percent.%player%} is between 5 and 9:
  653.                     replace "&r&4&l+17" with "&r&4&l+16" in {retool.name.%player%}
  654.                     set the name of {tool.%player%} to {retool.name.%player%}
  655.                     message "&3&l[強化失敗] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l16"
  656.                 else if {percent.%player%} is 10:
  657.                     replace "&r&4&l+17" with "&r&4&l+15" in {retool.name.%player%}
  658.                     set the name of {tool.%player%} to {retool.name.%player%}
  659.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l15"
  660.             else if {tool.name.%player%} contains "18":
  661.                 play sound "block.anvil.use" with pitch 2 at player
  662.                 remove 1 of held item from player
  663.                 set {percent.%player%} to random integer between 1 and 10
  664.                 if {percent.%player%} is 1:
  665.                     replace "&r&4&l+18" with "&r&4&l+20" in {retool.name.%player%}
  666.                     set the name of {tool.%player%} to {retool.name.%player%}
  667.                     message "&c&l[強化大成功] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l20"
  668.                 else if {percent.%player%} is between 2 and 4:
  669.                     replace "&r&4&l+18" with "&r&4&l+19" in {retool.name.%player%}
  670.                     set the name of {tool.%player%} to {retool.name.%player%}
  671.                     message "&c&l[強化成功] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l19"
  672.                 else if {percent.%player%} is between 5 and 9:
  673.                     replace "&r&4&l+18" with "&r&4&l+17" in {retool.name.%player%}
  674.                     set the name of {tool.%player%} to {retool.name.%player%}
  675.                     message "&3&l[強化失敗] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l17"
  676.                 else if {percent.%player%} is 10:
  677.                     replace "&r&4&l+18" with "&r&4&l+16" in {retool.name.%player%}
  678.                     set the name of {tool.%player%} to {retool.name.%player%}
  679.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l16"
  680.             else if {tool.name.%player%} contains "19":
  681.                 play sound "block.anvil.use" with pitch 2 at player
  682.                 remove 1 of held item from player
  683.                 set {percent.%player%} to random integer between 1 and 10
  684.                 if {percent.%player%} is 1:
  685.                     replace "&r&4&l+19" with "&r&4&l+20" in {retool.name.%player%}
  686.                     set the name of {tool.%player%} to {retool.name.%player%}
  687.                     message "&c&l[強化大成功] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l20"
  688.                 else if {percent.%player%} is between 2 and 4:
  689.                     replace "&r&4&l+19" with "&r&4&l+20" in {retool.name.%player%}
  690.                     set the name of {tool.%player%} to {retool.name.%player%}
  691.                     message "&c&l[強化成功] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l20"
  692.                 else if {percent.%player%} is between 5 and 9:
  693.                     replace "&r&4&l+19" with "&r&4&l+19" in {retool.name.%player%}
  694.                     set the name of {tool.%player%} to {retool.name.%player%}
  695.                     message "&3&l[強化失敗] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l19"
  696.                 else if {percent.%player%} is 10:
  697.                     replace "&r&4&l+19" with "&r&4&l+18" in {retool.name.%player%}
  698.                     set the name of {tool.%player%} to {retool.name.%player%}
  699.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l18"
  700.             else if {tool.name.%player%} contains "1":
  701.                 play sound "block.anvil.use" with pitch 2 at player
  702.                 remove 1 of held item from player
  703.                 set {percent.%player%} to random integer between 1 and 10
  704.                 if {percent.%player%} is 1:
  705.                     replace "&r&4&l+1" with "&r&4&l+3" in {retool.name.%player%}
  706.                     set the name of {tool.%player%} to {retool.name.%player%}
  707.                     message "&c&l[強化大成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l3"
  708.                 else if {percent.%player%} is between 2 and 5:
  709.                     replace "&r&4&l+1" with "&r&4&l+2" in {retool.name.%player%}
  710.                     set the name of {tool.%player%} to {retool.name.%player%}
  711.                     message "&c&l[強化成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l2"
  712.                 else if {percent.%player%} is between 6 and 9:
  713.                     replace "&r&4&l+1" with "&r&4&l" in {retool.name.%player%}
  714.                     set the name of {tool.%player%} to {retool.name.%player%}
  715.                     message "&3&l[強化失敗] &c&l強化後 +&6&l0"
  716.                 else if {percent.%player%} is 10:
  717.                     replace "&r&4&l+1" with "&r&4&l" in {retool.name.%player%}
  718.                     set the name of {tool.%player%} to {retool.name.%player%}
  719.                     message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  720.             else if {tool.name.%player%} contains "2":
  721.                 play sound "block.anvil.use" with pitch 2 at player
  722.                 remove 1 of held item from player
  723.                 set {percent.%player%} to random integer between 1 and 10
  724.                 if {percent.%player%} is 1:
  725.                     replace "&r&4&l+2" with "&r&4&l+4" in {retool.name.%player%}
  726.                     set the name of {tool.%player%} to {retool.name.%player%}
  727.                     message "&c&l[強化大成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l4"
  728.                 else if {percent.%player%} is between 2 and 5:
  729.                     replace "&r&4&l+2" with "&r&4&l+3" in {retool.name.%player%}
  730.                     set the name of {tool.%player%} to {retool.name.%player%}
  731.                     message "&c&l[強化成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l3"
  732.                 else if {percent.%player%} is between 6 and 9:
  733.                     replace "&r&4&l+2" with "&r&4&l+1" in {retool.name.%player%}
  734.                     set the name of {tool.%player%} to {retool.name.%player%}
  735.                     message "&3&l[強化失敗] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l1"
  736.                 else if {percent.%player%} is 10:
  737.                     replace "&r&4&l+2" with "&r&4&l" in {retool.name.%player%}
  738.                     set the name of {tool.%player%} to {retool.name.%player%}
  739.                     message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  740.             else if {tool.name.%player%} contains "3":
  741.                 play sound "block.anvil.use" with pitch 2 at player
  742.                 remove 1 of held item from player
  743.                 set {percent.%player%} to random integer between 1 and 10
  744.                 if {percent.%player%} is 1:
  745.                     replace "&r&4&l+3" with "&r&4&l+5" in {retool.name.%player%}
  746.                     set the name of {tool.%player%} to {retool.name.%player%}
  747.                     message "&c&l[強化大成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l5"
  748.                 else if {percent.%player%} is between 2 and 5:
  749.                     replace "&r&4&l+3" with "&r&4&l+4" in {retool.name.%player%}
  750.                     set the name of {tool.%player%} to {retool.name.%player%}
  751.                     message "&c&l[強化成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l4"
  752.                 else if {percent.%player%} is between 6 and 9:
  753.                     replace "&r&4&l+3" with "&r&4&l+2" in {retool.name.%player%}
  754.                     set the name of {tool.%player%} to {retool.name.%player%}
  755.                     message "&3&l[強化失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l2"
  756.                 else if {percent.%player%} is 10:
  757.                     replace "&r&4&l+3" with "&r&4&l+1" in {retool.name.%player%}
  758.                     set the name of {tool.%player%} to {retool.name.%player%}
  759.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l1"
  760.             else if {tool.name.%player%} contains "4":
  761.                 play sound "block.anvil.use" with pitch 2 at player
  762.                 remove 1 of held item from player
  763.                 set {percent.%player%} to random integer between 1 and 10
  764.                 if {percent.%player%} is 1:
  765.                     replace "&r&4&l+4" with "&r&4&l+6" in {retool.name.%player%}
  766.                     set the name of {tool.%player%} to {retool.name.%player%}
  767.                     message "&c&l[強化大成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l6"
  768.                 else if {percent.%player%} is between 2 and 5:
  769.                     replace "&r&4&l+4" with "&r&4&l+5" in {retool.name.%player%}
  770.                     set the name of {tool.%player%} to {retool.name.%player%}
  771.                     message "&c&l[強化成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l5"
  772.                 else if {percent.%player%} is between 6 and 9:
  773.                     replace "&r&4&l+4" with "&r&4&l+3" in {retool.name.%player%}
  774.                     set the name of {tool.%player%} to {retool.name.%player%}
  775.                     message "&3&l[強化失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l3"
  776.                 else if {percent.%player%} is 10:
  777.                     replace "&r&4&l+4" with "&r&4&l+2" in {retool.name.%player%}
  778.                     set the name of {tool.%player%} to {retool.name.%player%}
  779.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l2"
  780.             else if {tool.name.%player%} contains "5":
  781.                 play sound "block.anvil.use" with pitch 2 at player
  782.                 remove 1 of held item from player
  783.                 set {percent.%player%} to random integer between 1 and 10
  784.                 if {percent.%player%} is 1:
  785.                     replace "&r&4&l+5" with "&r&4&l+7" in {retool.name.%player%}
  786.                     set the name of {tool.%player%} to {retool.name.%player%}
  787.                     message "&c&l[強化大成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l7"
  788.                 else if {percent.%player%} is between 2 and 5:
  789.                     replace "&r&4&l+5" with "&r&4&l+6" in {retool.name.%player%}
  790.                     set the name of {tool.%player%} to {retool.name.%player%}
  791.                     message "&c&l[強化成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l6"
  792.                 else if {percent.%player%} is between 6 and 9:
  793.                     replace "&r&4&l+5" with "&r&4&l+4" in {retool.name.%player%}
  794.                     set the name of {tool.%player%} to {retool.name.%player%}
  795.                     message "&3&l[強化失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l4"
  796.                 else if {percent.%player%} is 10:
  797.                     replace "&r&4&l+5" with "&r&4&l+3" in {retool.name.%player%}
  798.                     set the name of {tool.%player%} to {retool.name.%player%}
  799.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l3"
  800.             else if {tool.name.%player%} contains "6":
  801.                 play sound "block.anvil.use" with pitch 2 at player
  802.                 remove 1 of held item from player
  803.                 set {percent.%player%} to random integer between 1 and 10
  804.                 if {percent.%player%} is 1:
  805.                     replace "&r&4&l+6" with "&r&4&l+8" in {retool.name.%player%}
  806.                     set the name of {tool.%player%} to {retool.name.%player%}
  807.                     message "&c&l[強化大成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l8"
  808.                 else if {percent.%player%} is between 2 and 5:
  809.                     replace "&r&4&l+6" with "&r&4&l+7" in {retool.name.%player%}
  810.                     set the name of {tool.%player%} to {retool.name.%player%}
  811.                     message "&c&l[強化成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l7"
  812.                 else if {percent.%player%} is between 6 and 9:
  813.                     replace "&r&4&l+6" with "&r&4&l+5" in {retool.name.%player%}
  814.                     set the name of {tool.%player%} to {retool.name.%player%}
  815.                     message "&3&l[強化失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l5"
  816.                 else if {percent.%player%} is 10:
  817.                     replace "&r&4&l+6" with "&r&4&l+4" in {retool.name.%player%}
  818.                     set the name of {tool.%player%} to {retool.name.%player%}
  819.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l4"
  820.             else if {tool.name.%player%} contains "7":
  821.                 play sound "block.anvil.use" with pitch 2 at player
  822.                 remove 1 of held item from player
  823.                 set {percent.%player%} to random integer between 1 and 10
  824.                 if {percent.%player%} is 1:
  825.                     replace "&r&4&l+7" with "&r&4&l+9" in {retool.name.%player%}
  826.                     set the name of {tool.%player%} to {retool.name.%player%}
  827.                     message "&c&l[強化大成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l9"
  828.                 else if {percent.%player%} is between 2 and 5:
  829.                     replace "&r&4&l+7" with "&r&4&l+8" in {retool.name.%player%}
  830.                     set the name of {tool.%player%} to {retool.name.%player%}
  831.                     message "&c&l[強化成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l8"
  832.                 else if {percent.%player%} is between 6 and 9:
  833.                     replace "&r&4&l+7" with "&r&4&l+6" in {retool.name.%player%}
  834.                     set the name of {tool.%player%} to {retool.name.%player%}
  835.                     message "&3&l[強化失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l6"
  836.                 else if {percent.%player%} is 10:
  837.                     replace "&r&4&l+7" with "&r&4&l+5" in {retool.name.%player%}
  838.                     set the name of {tool.%player%} to {retool.name.%player%}
  839.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l5"
  840.             else if {tool.name.%player%} contains "8":
  841.                 play sound "block.anvil.use" with pitch 2 at player
  842.                 remove 1 of held item from player
  843.                 set {percent.%player%} to random integer between 1 and 10
  844.                 if {percent.%player%} is 1:
  845.                     replace "&r&4&l+8" with "&r&4&l+10" in {retool.name.%player%}
  846.                     set the name of {tool.%player%} to {retool.name.%player%}
  847.                     message "&c&l[強化大成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l10"
  848.                 else if {percent.%player%} is between 2 and 5:
  849.                     replace "&r&4&l+8" with "&r&4&l+9" in {retool.name.%player%}
  850.                     set the name of {tool.%player%} to {retool.name.%player%}
  851.                     message "&c&l[強化成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l9"
  852.                 else if {percent.%player%} is between 6 and 9:
  853.                     replace "&r&4&l+8" with "&r&4&l+7" in {retool.name.%player%}
  854.                     set the name of {tool.%player%} to {retool.name.%player%}
  855.                     message "&3&l[強化失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l7"
  856.                 else if {percent.%player%} is 10:
  857.                     replace "&r&4&l+8" with "&r&4&l+6" in {retool.name.%player%}
  858.                     set the name of {tool.%player%} to {retool.name.%player%}
  859.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l6"
  860.             else if {tool.name.%player%} contains "9":
  861.                 play sound "block.anvil.use" with pitch 2 at player
  862.                 remove 1 of held item from player
  863.                 set {percent.%player%} to random integer between 1 and 10
  864.                 if {percent.%player%} is 1:
  865.                     replace "&r&4&l+9" with "&r&4&l+10" in {retool.name.%player%}
  866.                     set the name of {tool.%player%} to {retool.name.%player%}
  867.                     message "&c&l[強化大成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  868.                 else if {percent.%player%} is between 2 and 5:
  869.                     replace "&r&4&l+9" with "&r&4&l+10" in {retool.name.%player%}
  870.                     set the name of {tool.%player%} to {retool.name.%player%}
  871.                     message "&c&l[強化成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  872.                 else if {percent.%player%} is between 6 and 9:
  873.                     replace "&r&4&l+9" with "&r&4&l+8" in {retool.name.%player%}
  874.                     set the name of {tool.%player%} to {retool.name.%player%}
  875.                     message "&3&l[強化失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l8"
  876.                 else if {percent.%player%} is 10:
  877.                     replace "&r&4&l+9" with "&r&4&l+7" in {retool.name.%player%}
  878.                     set the name of {tool.%player%} to {retool.name.%player%}
  879.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l7"
  880.             else:
  881.                 play sound "block.anvil.use" with pitch 2 at player
  882.                 remove 1 of held item from player
  883.                 set {percent.%player%} to random integer between 1 and 10
  884.                 if {percent.%player%} is 1:
  885.                     replace "&r&4&l" with "&r&4&l+2" in {retool.name.%player%}
  886.                     set the name of {tool.%player%} to {retool.name.%player%}
  887.                     message "&c&l[強化大成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l2"
  888.                 else if {percent.%player%} is between 2 and 5:
  889.                     replace "&r&4&l" with "&r&4&l+1" in {retool.name.%player%}
  890.                     set the name of {tool.%player%} to {retool.name.%player%}
  891.                     message "&c&l[強化成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l1"
  892.                 else if {percent.%player%} is between 6 and 9:
  893.                     message "&3&l[強化失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  894.                 else if {percent.%player%} is 10:
  895.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  896.     if name of held item contains "&r&5&l":
  897.         if {tool.%player%} is set:
  898.             message "&c既に武器がセットされています"
  899.         else if {tool.%player%} is not set:
  900.             set {tool.%player%} to player's tool
  901.             set {tool.name.%player%} to name of player's tool
  902.             delete player's tool
  903.             message "&a武器をセットしました"
  904.             stop
  905.     else if name of held item is "&c&l&n強化石":
  906.         if {tool.%player%} is not set:
  907.             message "&c武器がセットされていません"
  908.         else:
  909.             name of {tool.%player%} contains "&r&5&l"
  910.             set {tool.name.%player%} to name of {tool.%player%}
  911.             set {retool.name.%player%} to {tool.name.%player%}
  912.             replace "&1" with "" in {tool.name.%player%}
  913.             replace "&2" with "" in {tool.name.%player%}
  914.             replace "&3" with "" in {tool.name.%player%}
  915.             replace "&4" with "" in {tool.name.%player%}
  916.             replace "&5" with "" in {tool.name.%player%}
  917.             replace "&6" with "" in {tool.name.%player%}
  918.             replace "&7" with "" in {tool.name.%player%}
  919.             replace "&8" with "" in {tool.name.%player%}
  920.             replace "&9" with "" in {tool.name.%player%}
  921.             if name of {tool.%player%} contains "30":
  922.                 message "&cこの武器はすでに強化値が30なのでこれ以上強化でません"
  923.                 message "&cこれ以上強化するには限界突破をしてください"
  924.             else if {tool.name.%player%} contains "10":
  925.                 play sound "block.anvil.use" with pitch 2 at player
  926.                 remove 1 of held item from player
  927.                 set {percent.%player%} to random integer between 1 and 10
  928.                 if {percent.%player%} is 1:
  929.                     replace "&r&5&l+10" with "&r&5&l+12" in {retool.name.%player%}
  930.                     set the name of {tool.%player%} to {retool.name.%player%}
  931.                     message "&c&l[強化大成功] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l12"
  932.                 else if {percent.%player%} is between 2 and 5:
  933.                     replace "&r&5&l+10" with "&r&5&l+11" in {retool.name.%player%}
  934.                     set the name of {tool.%player%} to {retool.name.%player%}
  935.                     message "&c&l[強化成功] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l11"
  936.                 else if {percent.%player%} is between 6 and 9:
  937.                     replace "&r&5&l+10" with "&r&5&l+9" in {retool.name.%player%}
  938.                     set the name of {tool.%player%} to {retool.name.%player%}
  939.                     message "&3&l[強化失敗] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l9"
  940.                 else if {percent.%player%} is 10:
  941.                     replace "&r&5&l+10" with "&r&5&l+8" in {retool.name.%player%}
  942.                     set the name of {tool.%player%} to {retool.name.%player%}
  943.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l8"
  944.             else if {tool.name.%player%} contains "11":
  945.                 play sound "block.anvil.use" with pitch 2 at player
  946.                 remove 1 of held item from player
  947.                 set {percent.%player%} to random integer between 1 and 10
  948.                 if {percent.%player%} is 1:
  949.                     replace "&r&5&l+11" with "&r&5&l+13" in {retool.name.%player%}
  950.                     set the name of {tool.%player%} to {retool.name.%player%}
  951.                     message "&c&l[強化大成功] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l13"
  952.                 else if {percent.%player%} is between 2 and 4:
  953.                     replace "&r&5&l+11" with "&r&5&l+12" in {retool.name.%player%}
  954.                     set the name of {tool.%player%} to {retool.name.%player%}
  955.                     message "&c&l[強化成功] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l12"
  956.                 else if {percent.%player%} is between 5 and 9:
  957.                     replace "&r&5&l+11" with "&r&5&l+10" in {retool.name.%player%}
  958.                     set the name of {tool.%player%} to {retool.name.%player%}
  959.                     message "&3&l[強化失敗] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l10"
  960.                 else if {percent.%player%} is 10:
  961.                     replace "&r&5&l+11" with "&r&5&l+9" in {retool.name.%player%}
  962.                     set the name of {tool.%player%} to {retool.name.%player%}
  963.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l9"
  964.             else if {tool.name.%player%} contains "12":
  965.                 play sound "block.anvil.use" with pitch 2 at player
  966.                 remove 1 of held item from player
  967.                 set {percent.%player%} to random integer between 1 and 10
  968.                 if {percent.%player%} is 1:
  969.                     replace "&r&5&l+12" with "&r&5&l+14" in {retool.name.%player%}
  970.                     set the name of {tool.%player%} to {retool.name.%player%}
  971.                     message "&c&l[強化大成功] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l14"
  972.                 else if {percent.%player%} is between 2 and 4:
  973.                     replace "&r&5&l+12" with "&r&5&l+13" in {retool.name.%player%}
  974.                     set the name of {tool.%player%} to {retool.name.%player%}
  975.                     message "&c&l[強化成功] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l13"
  976.                 else if {percent.%player%} is between 5 and 9:
  977.                     replace "&r&5&l+12" with "&r&5&l+11" in {retool.name.%player%}
  978.                     set the name of {tool.%player%} to {retool.name.%player%}
  979.                     message "&3&l[強化失敗] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l11"
  980.                 else if {percent.%player%} is 10:
  981.                     replace "&r&5&l+12" with "&r&5&l+10" in {retool.name.%player%}
  982.                     set the name of {tool.%player%} to {retool.name.%player%}
  983.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l10"
  984.             else if {tool.name.%player%} contains "13":
  985.                 play sound "block.anvil.use" with pitch 2 at player
  986.                 remove 1 of held item from player
  987.                 set {percent.%player%} to random integer between 1 and 10
  988.                 if {percent.%player%} is 1:
  989.                     replace "&r&5&l+13" with "&r&5&l+15" in {retool.name.%player%}
  990.                     set the name of {tool.%player%} to {retool.name.%player%}
  991.                     message "&c&l[強化大成功] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l15"
  992.                 else if {percent.%player%} is between 2 and 4:
  993.                     replace "&r&5&l+13" with "&r&5&l+14" in {retool.name.%player%}
  994.                     set the name of {tool.%player%} to {retool.name.%player%}
  995.                     message "&c&l[強化成功] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l14"
  996.                 else if {percent.%player%} is between 5 and 9:
  997.                     replace "&r&5&l+13" with "&r&5&l+12" in {retool.name.%player%}
  998.                     set the name of {tool.%player%} to {retool.name.%player%}
  999.                     message "&3&l[強化失敗] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l12"
  1000.                 else if {percent.%player%} is 10:
  1001.                     replace "&r&5&l+13" with "&r&5&l+11" in {retool.name.%player%}
  1002.                     set the name of {tool.%player%} to {retool.name.%player%}
  1003.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l11"
  1004.             else if {tool.name.%player%} contains "14":
  1005.                 play sound "block.anvil.use" with pitch 2 at player
  1006.                 remove 1 of held item from player
  1007.                 set {percent.%player%} to random integer between 1 and 10
  1008.                 if {percent.%player%} is 1:
  1009.                     replace "&r&5&l+14" with "&r&5&l+16" in {retool.name.%player%}
  1010.                     set the name of {tool.%player%} to {retool.name.%player%}
  1011.                     message "&c&l[強化大成功] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l16"
  1012.                 else if {percent.%player%} is between 2 and 4:
  1013.                     replace "&r&5&l+14" with "&r&5&l+15" in {retool.name.%player%}
  1014.                     set the name of {tool.%player%} to {retool.name.%player%}
  1015.                     message "&c&l[強化成功] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l15"
  1016.                 else if {percent.%player%} is between 5 and 9:
  1017.                     replace "&r&5&l+14" with "&r&5&l+13" in {retool.name.%player%}
  1018.                     set the name of {tool.%player%} to {retool.name.%player%}
  1019.                     message "&3&l[強化失敗] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l13"
  1020.                 else if {percent.%player%} is 10:
  1021.                     replace "&r&5&l+14" with "&r&5&l+12" in {retool.name.%player%}
  1022.                     set the name of {tool.%player%} to {retool.name.%player%}
  1023.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l12"
  1024.             else if {tool.name.%player%} contains "15":
  1025.                 play sound "block.anvil.use" with pitch 2 at player
  1026.                 remove 1 of held item from player
  1027.                 set {percent.%player%} to random integer between 1 and 10
  1028.                 if {percent.%player%} is 1:
  1029.                     replace "&r&5&l+15" with "&r&5&l+17" in {retool.name.%player%}
  1030.                     set the name of {tool.%player%} to {retool.name.%player%}
  1031.                     message "&c&l[強化大成功] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l17"
  1032.                 else if {percent.%player%} is between 2 and 4:
  1033.                     replace "&r&5&l+15" with "&r&5&l+16" in {retool.name.%player%}
  1034.                     set the name of {tool.%player%} to {retool.name.%player%}
  1035.                     message "&c&l[強化成功] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l16"
  1036.                 else if {percent.%player%} is between 5 and 9:
  1037.                     replace "&r&5&l+15" with "&r&5&l+14" in {retool.name.%player%}
  1038.                     set the name of {tool.%player%} to {retool.name.%player%}
  1039.                     message "&3&l[強化失敗] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l14"
  1040.                 else if {percent.%player%} is 10:
  1041.                     replace "&r&5&l+15" with "&r&5&l+13" in {retool.name.%player%}
  1042.                     set the name of {tool.%player%} to {retool.name.%player%}
  1043.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l13"
  1044.             else if {tool.name.%player%} contains "16":
  1045.                 play sound "block.anvil.use" with pitch 2 at player
  1046.                 remove 1 of held item from player
  1047.                 set {percent.%player%} to random integer between 1 and 10
  1048.                 if {percent.%player%} is 1:
  1049.                     replace "&r&5&l+16" with "&r&5&l+18" in {retool.name.%player%}
  1050.                     set the name of {tool.%player%} to {retool.name.%player%}
  1051.                     message "&c&l[強化大成功] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l18"
  1052.                 else if {percent.%player%} is between 2 and 4:
  1053.                     replace "&r&5&l+16" with "&r&5&l+17" in {retool.name.%player%}
  1054.                     set the name of {tool.%player%} to {retool.name.%player%}
  1055.                     message "&c&l[強化成功] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l17"
  1056.                 else if {percent.%player%} is between 5 and 9:
  1057.                     replace "&r&5&l+16" with "&r&5&l+15" in {retool.name.%player%}
  1058.                     set the name of {tool.%player%} to {retool.name.%player%}
  1059.                     message "&3&l[強化失敗] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l15"
  1060.                 else if {percent.%player%} is 10:
  1061.                     replace "&r&5&l+16" with "&r&5&l+14" in {retool.name.%player%}
  1062.                     set the name of {tool.%player%} to {retool.name.%player%}
  1063.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l14"
  1064.             else if {tool.name.%player%} contains "17":
  1065.                 play sound "block.anvil.use" with pitch 2 at player
  1066.                 remove 1 of held item from player
  1067.                 set {percent.%player%} to random integer between 1 and 10
  1068.                 if {percent.%player%} is 1:
  1069.                     replace "&r&5&l+17" with "&r&5&l+19" in {retool.name.%player%}
  1070.                     set the name of {tool.%player%} to {retool.name.%player%}
  1071.                     message "&c&l[強化大成功] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l19"
  1072.                 else if {percent.%player%} is between 2 and 4:
  1073.                     replace "&r&5&l+17" with "&r&5&l+18" in {retool.name.%player%}
  1074.                     set the name of {tool.%player%} to {retool.name.%player%}
  1075.                     message "&c&l[強化成功] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l18"
  1076.                 else if {percent.%player%} is between 5 and 9:
  1077.                     replace "&r&5&l+17" with "&r&5&l+16" in {retool.name.%player%}
  1078.                     set the name of {tool.%player%} to {retool.name.%player%}
  1079.                     message "&3&l[強化失敗] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l16"
  1080.                 else if {percent.%player%} is 10:
  1081.                     replace "&r&5&l+17" with "&r&5&l+15" in {retool.name.%player%}
  1082.                     set the name of {tool.%player%} to {retool.name.%player%}
  1083.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l15"
  1084.             else if {tool.name.%player%} contains "18":
  1085.                 play sound "block.anvil.use" with pitch 2 at player
  1086.                 remove 1 of held item from player
  1087.                 set {percent.%player%} to random integer between 1 and 10
  1088.                 if {percent.%player%} is 1:
  1089.                     replace "&r&5&l+18" with "&r&5&l+20" in {retool.name.%player%}
  1090.                     set the name of {tool.%player%} to {retool.name.%player%}
  1091.                     message "&c&l[強化大成功] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l20"
  1092.                 else if {percent.%player%} is between 2 and 4:
  1093.                     replace "&r&5&l+18" with "&r&5&l+19" in {retool.name.%player%}
  1094.                     set the name of {tool.%player%} to {retool.name.%player%}
  1095.                     message "&c&l[強化成功] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l19"
  1096.                 else if {percent.%player%} is between 5 and 9:
  1097.                     replace "&r&5&l+18" with "&r&5&l+17" in {retool.name.%player%}
  1098.                     set the name of {tool.%player%} to {retool.name.%player%}
  1099.                     message "&3&l[強化失敗] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l17"
  1100.                 else if {percent.%player%} is 10:
  1101.                     replace "&r&5&l+18" with "&r&5&l+16" in {retool.name.%player%}
  1102.                     set the name of {tool.%player%} to {retool.name.%player%}
  1103.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l16"
  1104.             else if {tool.name.%player%} contains "19":
  1105.                 play sound "block.anvil.use" with pitch 2 at player
  1106.                 remove 1 of held item from player
  1107.                 set {percent.%player%} to random integer between 1 and 10
  1108.                 if {percent.%player%} is 1:
  1109.                     replace "&r&5&l+19" with "&r&5&l+21" in {retool.name.%player%}
  1110.                     set the name of {tool.%player%} to {retool.name.%player%}
  1111.                     message "&c&l[強化大成功] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l20"
  1112.                 else if {percent.%player%} is between 2 and 4:
  1113.                     replace "&r&5&l+19" with "&r&5&l+20" in {retool.name.%player%}
  1114.                     set the name of {tool.%player%} to {retool.name.%player%}
  1115.                     message "&c&l[強化成功] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l20"
  1116.                 else if {percent.%player%} is between 5 and 9:
  1117.                     replace "&r&5&l+19" with "&r&5&l+18" in {retool.name.%player%}
  1118.                     set the name of {tool.%player%} to {retool.name.%player%}
  1119.                     message "&3&l[強化失敗] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l18"
  1120.                 else if {percent.%player%} is 10:
  1121.                     replace "&r&5&l+19" with "&r&5&l+17" in {retool.name.%player%}
  1122.                     set the name of {tool.%player%} to {retool.name.%player%}
  1123.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l17"
  1124.             else if {tool.name.%player%} contains "20":
  1125.                 play sound "block.anvil.use" with pitch 2 at player
  1126.                 remove 1 of held item from player
  1127.                 set {percent.%player%} to random integer between 1 and 10
  1128.                 if {percent.%player%} is 1:
  1129.                     replace "&r&5&l+20" with "&r&5&l+22" in {retool.name.%player%}
  1130.                     set the name of {tool.%player%} to {retool.name.%player%}
  1131.                     message "&c&l[強化大成功] &a&l強化前 +&6&l20 &6→ &c&l強化後 +&6&l22"
  1132.                 else if {percent.%player%} is between 2 and 5:
  1133.                     replace "&r&5&l+20" with "&r&5&l+21" in {retool.name.%player%}
  1134.                     set the name of {tool.%player%} to {retool.name.%player%}
  1135.                     message "&c&l[強化成功] &a&l強化前 +&6&l20 &6→ &c&l強化後 +&6&l21"
  1136.                 else if {percent.%player%} is between 6 and 9:
  1137.                     replace "&r&5&l+20" with "&r&5&l+19" in {retool.name.%player%}
  1138.                     set the name of {tool.%player%} to {retool.name.%player%}
  1139.                     message "&3&l[強化失敗] &a&l強化前 +&6&l20 &6→ &c&l強化後 +&6&l19"
  1140.                 else if {percent.%player%} is 10:
  1141.                     replace "&r&5&l+20" with "&r&5&l+18" in {retool.name.%player%}
  1142.                     set the name of {tool.%player%} to {retool.name.%player%}
  1143.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l20 &6→ &c&l強化後 +&6&l18"
  1144.             else if {tool.name.%player%} contains "21":
  1145.                 play sound "block.anvil.use" with pitch 2 at player
  1146.                 remove 1 of held item from player
  1147.                 set {percent.%player%} to random integer between 1 and 10
  1148.                 if {percent.%player%} is 1:
  1149.                     replace "&r&5&l+21" with "&r&5&l+23" in {retool.name.%player%}
  1150.                     set the name of {tool.%player%} to {retool.name.%player%}
  1151.                     message "&c&l[強化大成功] &a&l強化前 +&6&l21 &6→ &c&l強化後 +&6&l23"
  1152.                 else if {percent.%player%} is between 2 and 4:
  1153.                     replace "&r&5&l+21" with "&r&5&l+22" in {retool.name.%player%}
  1154.                     set the name of {tool.%player%} to {retool.name.%player%}
  1155.                     message "&c&l[強化成功] &a&l強化前 +&6&l21 &6→ &c&l強化後 +&6&l22"
  1156.                 else if {percent.%player%} is between 5 and 9:
  1157.                     replace "&r&5&l+21" with "&r&5&l+20" in {retool.name.%player%}
  1158.                     set the name of {tool.%player%} to {retool.name.%player%}
  1159.                     message "&3&l[強化失敗] &a&l強化前 +&6&l21 &6→ &c&l強化後 +&6&l20"
  1160.                 else if {percent.%player%} is 10:
  1161.                     replace "&r&5&l+21" with "&r&5&l+19" in {retool.name.%player%}
  1162.                     set the name of {tool.%player%} to {retool.name.%player%}
  1163.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l21 &6→ &c&l強化後 +&6&l19"
  1164.             else if {tool.name.%player%} contains "22":
  1165.                 play sound "block.anvil.use" with pitch 2 at player
  1166.                 remove 1 of held item from player
  1167.                 set {percent.%player%} to random integer between 1 and 10
  1168.                 if {percent.%player%} is 1:
  1169.                     replace "&r&5&l+22" with "&r&5&l+24" in {retool.name.%player%}
  1170.                     set the name of {tool.%player%} to {retool.name.%player%}
  1171.                     message "&c&l[強化大成功] &a&l強化前 +&6&l22 &6→ &c&l強化後 +&6&l24"
  1172.                 else if {percent.%player%} is between 2 and 4:
  1173.                     replace "&r&5&l+22" with "&r&5&l+23" in {retool.name.%player%}
  1174.                     set the name of {tool.%player%} to {retool.name.%player%}
  1175.                     message "&c&l[強化成功] &a&l強化前 +&6&l22 &6→ &c&l強化後 +&6&l23"
  1176.                 else if {percent.%player%} is between 5 and 9:
  1177.                     replace "&r&5&l+22" with "&r&5&l+21" in {retool.name.%player%}
  1178.                     set the name of {tool.%player%} to {retool.name.%player%}
  1179.                     message "&3&l[強化失敗] &a&l強化前 +&6&l22 &6→ &c&l強化後 +&6&l21"
  1180.                 else if {percent.%player%} is 10:
  1181.                     replace "&r&5&l+22" with "&r&5&l+20" in {retool.name.%player%}
  1182.                     set the name of {tool.%player%} to {retool.name.%player%}
  1183.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l22 &6→ &c&l強化後 +&6&l20"
  1184.             else if {tool.name.%player%} contains "23":
  1185.                 play sound "block.anvil.use" with pitch 2 at player
  1186.                 remove 1 of held item from player
  1187.                 set {percent.%player%} to random integer between 1 and 10
  1188.                 if {percent.%player%} is 1:
  1189.                     replace "&r&5&l+23" with "&r&5&l+25" in {retool.name.%player%}
  1190.                     set the name of {tool.%player%} to {retool.name.%player%}
  1191.                     message "&c&l[強化大成功] &a&l強化前 +&6&l23 &6→ &c&l強化後 +&6&l25"
  1192.                 else if {percent.%player%} is between 2 and 4:
  1193.                     replace "&r&5&l+23" with "&r&5&l+24" in {retool.name.%player%}
  1194.                     set the name of {tool.%player%} to {retool.name.%player%}
  1195.                     message "&c&l[強化成功] &a&l強化前 +&6&l23 &6→ &c&l強化後 +&6&l24"
  1196.                 else if {percent.%player%} is between 5 and 9:
  1197.                     replace "&r&5&l+23" with "&r&5&l+22" in {retool.name.%player%}
  1198.                     set the name of {tool.%player%} to {retool.name.%player%}
  1199.                     message "&3&l[強化失敗] &a&l強化前 +&6&l23 &6→ &c&l強化後 +&6&l22"
  1200.                 else if {percent.%player%} is 10:
  1201.                     replace "&r&5&l+23" with "&r&5&l+21" in {retool.name.%player%}
  1202.                     set the name of {tool.%player%} to {retool.name.%player%}
  1203.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l23 &6→ &c&l強化後 +&6&l21"
  1204.             else if {tool.name.%player%} contains "24":
  1205.                 play sound "block.anvil.use" with pitch 2 at player
  1206.                 remove 1 of held item from player
  1207.                 set {percent.%player%} to random integer between 1 and 10
  1208.                 if {percent.%player%} is 1:
  1209.                     replace "&r&5&l+24" with "&r&5&l+26" in {retool.name.%player%}
  1210.                     set the name of {tool.%player%} to {retool.name.%player%}
  1211.                     message "&c&l[強化大成功] &a&l強化前 +&6&l24 &6→ &c&l強化後 +&6&l26"
  1212.                 else if {percent.%player%} is between 2 and 4:
  1213.                     replace "&r&5&l+24" with "&r&5&l+25" in {retool.name.%player%}
  1214.                     set the name of {tool.%player%} to {retool.name.%player%}
  1215.                     message "&c&l[強化成功] &a&l強化前 +&6&l24 &6→ &c&l強化後 +&6&l25"
  1216.                 else if {percent.%player%} is between 5 and 9:
  1217.                     replace "&r&5&l+24" with "&r&5&l+23" in {retool.name.%player%}
  1218.                     set the name of {tool.%player%} to {retool.name.%player%}
  1219.                     message "&3&l[強化失敗] &a&l強化前 +&6&l24 &6→ &c&l強化後 +&6&l23"
  1220.                 else if {percent.%player%} is 10:
  1221.                     replace "&r&5&l+24" with "&r&5&l+22" in {retool.name.%player%}
  1222.                     set the name of {tool.%player%} to {retool.name.%player%}
  1223.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l24 &6→ &c&l強化後 +&6&l22"
  1224.             else if {tool.name.%player%} contains "25":
  1225.                 play sound "block.anvil.use" with pitch 2 at player
  1226.                 remove 1 of held item from player
  1227.                 set {percent.%player%} to random integer between 1 and 10
  1228.                 if {percent.%player%} is 1:
  1229.                     replace "&r&5&l+25" with "&r&5&l+27" in {retool.name.%player%}
  1230.                     set the name of {tool.%player%} to {retool.name.%player%}
  1231.                     message "&c&l[強化大成功] &a&l強化前 +&6&l25 &6→ &c&l強化後 +&6&l27"
  1232.                 else if {percent.%player%} is between 2 and 4:
  1233.                     replace "&r&5&l+25" with "&r&5&l+26" in {retool.name.%player%}
  1234.                     set the name of {tool.%player%} to {retool.name.%player%}
  1235.                     message "&c&l[強化成功] &a&l強化前 +&6&l25 &6→ &c&l強化後 +&6&l26"
  1236.                 else if {percent.%player%} is between 5 and 9:
  1237.                     replace "&r&5&l+25" with "&r&5&l+24" in {retool.name.%player%}
  1238.                     set the name of {tool.%player%} to {retool.name.%player%}
  1239.                     message "&3&l[強化失敗] &a&l強化前 +&6&l25 &6→ &c&l強化後 +&6&l24"
  1240.                 else if {percent.%player%} is 10:
  1241.                     replace "&r&5&l+25" with "&r&5&l+23" in {retool.name.%player%}
  1242.                     set the name of {tool.%player%} to {retool.name.%player%}
  1243.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l25 &6→ &c&l強化後 +&6&l23"
  1244.             else if {tool.name.%player%} contains "26":
  1245.                 play sound "block.anvil.use" with pitch 2 at player
  1246.                 remove 1 of held item from player
  1247.                 set {percent.%player%} to random integer between 1 and 10
  1248.                 if {percent.%player%} is 1:
  1249.                     replace "&r&5&l+26" with "&r&5&l+28" in {retool.name.%player%}
  1250.                     set the name of {tool.%player%} to {retool.name.%player%}
  1251.                     message "&c&l[強化大成功] &a&l強化前 +&6&l26 &6→ &c&l強化後 +&6&l28"
  1252.                 else if {percent.%player%} is between 2 and 4:
  1253.                     replace "&r&5&l+26" with "&r&5&l+27" in {retool.name.%player%}
  1254.                     set the name of {tool.%player%} to {retool.name.%player%}
  1255.                     message "&c&l[強化成功] &a&l強化前 +&6&l26 &6→ &c&l強化後 +&6&l27"
  1256.                 else if {percent.%player%} is between 5 and 9:
  1257.                     replace "&r&5&l+26" with "&r&5&l+25" in {retool.name.%player%}
  1258.                     set the name of {tool.%player%} to {retool.name.%player%}
  1259.                     message "&3&l[強化失敗] &a&l強化前 +&6&l26 &6→ &c&l強化後 +&6&l25"
  1260.                 else if {percent.%player%} is 10:
  1261.                     replace "&r&5&l+26" with "&r&5&l+24" in {retool.name.%player%}
  1262.                     set the name of {tool.%player%} to {retool.name.%player%}
  1263.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l26 &6→ &c&l強化後 +&6&l24"
  1264.             else if {tool.name.%player%} contains "27":
  1265.                 play sound "block.anvil.use" with pitch 2 at player
  1266.                 remove 1 of held item from player
  1267.                 set {percent.%player%} to random integer between 1 and 10
  1268.                 if {percent.%player%} is 1:
  1269.                     replace "&r&5&l+27" with "&r&5&l+29" in {retool.name.%player%}
  1270.                     set the name of {tool.%player%} to {retool.name.%player%}
  1271.                     message "&c&l[強化大成功] &a&l強化前 +&6&l27 &6→ &c&l強化後 +&6&l29"
  1272.                 else if {percent.%player%} is between 2 and 4:
  1273.                     replace "&r&5&l+27" with "&r&5&l+28" in {retool.name.%player%}
  1274.                     set the name of {tool.%player%} to {retool.name.%player%}
  1275.                     message "&c&l[強化成功] &a&l強化前 +&6&l27 &6→ &c&l強化後 +&6&l28"
  1276.                 else if {percent.%player%} is between 5 and 9:
  1277.                     replace "&r&5&l+27" with "&r&5&l+26" in {retool.name.%player%}
  1278.                     set the name of {tool.%player%} to {retool.name.%player%}
  1279.                     message "&3&l[強化失敗] &a&l強化前 +&6&l27 &6→ &c&l強化後 +&6&l26"
  1280.                 else if {percent.%player%} is 10:
  1281.                     replace "&r&5&l+27" with "&r&5&l+25" in {retool.name.%player%}
  1282.                     set the name of {tool.%player%} to {retool.name.%player%}
  1283.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l27 &6→ &c&l強化後 +&6&l25"
  1284.             else if {tool.name.%player%} contains "28":
  1285.                 play sound "block.anvil.use" with pitch 2 at player
  1286.                 remove 1 of held item from player
  1287.                 set {percent.%player%} to random integer between 1 and 10
  1288.                 if {percent.%player%} is 1:
  1289.                     replace "&r&5&l+28" with "&r&5&l+30" in {retool.name.%player%}
  1290.                     set the name of {tool.%player%} to {retool.name.%player%}
  1291.                     message "&c&l[強化大成功] &a&l強化前 +&6&l28 &6→ &c&l強化後 +&6&l30"
  1292.                 else if {percent.%player%} is between 2 and 4:
  1293.                     replace "&r&5&l+28" with "&r&5&l+29" in {retool.name.%player%}
  1294.                     set the name of {tool.%player%} to {retool.name.%player%}
  1295.                     message "&c&l[強化成功] &a&l強化前 +&6&l28 &6→ &c&l強化後 +&6&l29"
  1296.                 else if {percent.%player%} is between 5 and 9:
  1297.                     replace "&r&5&l+28" with "&r&5&l+27" in {retool.name.%player%}
  1298.                     set the name of {tool.%player%} to {retool.name.%player%}
  1299.                     message "&3&l[強化失敗] &a&l強化前 +&6&l28 &6→ &c&l強化後 +&6&l27"
  1300.                 else if {percent.%player%} is 10:
  1301.                     replace "&r&5&l+28" with "&r&5&l+26" in {retool.name.%player%}
  1302.                     set the name of {tool.%player%} to {retool.name.%player%}
  1303.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l28 &6→ &c&l強化後 +&6&l26"
  1304.             else if {tool.name.%player%} contains "29":
  1305.                 play sound "block.anvil.use" with pitch 2 at player
  1306.                 remove 1 of held item from player
  1307.                 set {percent.%player%} to random integer between 1 and 10
  1308.                 if {percent.%player%} is 1:
  1309.                     replace "&r&5&l+29" with "&r&5&l+30" in {retool.name.%player%}
  1310.                     set the name of {tool.%player%} to {retool.name.%player%}
  1311.                     message "&c&l[強化大成功] &a&l強化前 +&6&l29 &6→ &c&l強化後 +&6&l30"
  1312.                 else if {percent.%player%} is between 2 and 4:
  1313.                     replace "&r&5&l+29" with "&r&5&l+30" in {retool.name.%player%}
  1314.                     set the name of {tool.%player%} to {retool.name.%player%}
  1315.                     message "&c&l[強化成功] &a&l強化前 +&6&l29 &6→ &c&l強化後 +&6&l30"
  1316.                 else if {percent.%player%} is between 5 and 9:
  1317.                     replace "&r&5&l+29" with "&r&5&l+28" in {retool.name.%player%}
  1318.                     set the name of {tool.%player%} to {retool.name.%player%}
  1319.                     message "&3&l[強化失敗] &a&l強化前 +&6&l29 &6→ &c&l強化後 +&6&l28"
  1320.                 else if {percent.%player%} is 10:
  1321.                     replace "&r&5&l+29" with "&r&5&l+27" in {retool.name.%player%}
  1322.                     set the name of {tool.%player%} to {retool.name.%player%}
  1323.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l29 &6→ &c&l強化後 +&6&l27"
  1324.             else if {tool.name.%player%} contains "1":
  1325.                 play sound "block.anvil.use" with pitch 2 at player
  1326.                 remove 1 of held item from player
  1327.                 set {percent.%player%} to random integer between 1 and 10
  1328.                 if {percent.%player%} is 1:
  1329.                     replace "&r&5&l+1" with "&r&5&l+3" in {retool.name.%player%}
  1330.                     set the name of {tool.%player%} to {retool.name.%player%}
  1331.                     message "&c&l[強化大成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l3"
  1332.                 else if {percent.%player%} is between 2 and 5:
  1333.                     replace "&r&5&l+1" with "&r&5&l+2" in {retool.name.%player%}
  1334.                     set the name of {tool.%player%} to {retool.name.%player%}
  1335.                     message "&c&l[強化成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l2"
  1336.                 else if {percent.%player%} is between 6 and 9:
  1337.                     replace "&r&5&l+1" with "&r&5&l" in {retool.name.%player%}
  1338.                     set the name of {tool.%player%} to {retool.name.%player%}
  1339.                     message "&3&l[強化失敗] &c&l強化後 +&6&l0"
  1340.                 else if {percent.%player%} is 10:
  1341.                     replace "&r&5&l+1" with "&r&5&l" in {retool.name.%player%}
  1342.                     set the name of {tool.%player%} to {retool.name.%player%}
  1343.                     message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  1344.             else if {tool.name.%player%} contains "2":
  1345.                 play sound "block.anvil.use" with pitch 2 at player
  1346.                 remove 1 of held item from player
  1347.                 set {percent.%player%} to random integer between 1 and 10
  1348.                 if {percent.%player%} is 1:
  1349.                     replace "&r&5&l+2" with "&r&5&l+4" in {retool.name.%player%}
  1350.                     set the name of {tool.%player%} to {retool.name.%player%}
  1351.                     message "&c&l[強化大成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l4"
  1352.                 else if {percent.%player%} is between 2 and 5:
  1353.                     replace "&r&5&l+2" with "&r&5&l+3" in {retool.name.%player%}
  1354.                     set the name of {tool.%player%} to {retool.name.%player%}
  1355.                     message "&c&l[強化成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l3"
  1356.                 else if {percent.%player%} is between 6 and 9:
  1357.                     replace "&r&5&l+2" with "&r&5&l+1" in {retool.name.%player%}
  1358.                     set the name of {tool.%player%} to {retool.name.%player%}
  1359.                     message "&3&l[強化失敗] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l1"
  1360.                 else if {percent.%player%} is 10:
  1361.                     replace "&r&5&l+2" with "&r&5&l" in {retool.name.%player%}
  1362.                     set the name of {tool.%player%} to {retool.name.%player%}
  1363.                     message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  1364.             else if {tool.name.%player%} contains "3":
  1365.                 play sound "block.anvil.use" with pitch 2 at player
  1366.                 remove 1 of held item from player
  1367.                 set {percent.%player%} to random integer between 1 and 10
  1368.                 if {percent.%player%} is 1:
  1369.                     replace "&r&5&l+3" with "&r&5&l+5" in {retool.name.%player%}
  1370.                     set the name of {tool.%player%} to {retool.name.%player%}
  1371.                     message "&c&l[強化大成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l5"
  1372.                 else if {percent.%player%} is between 2 and 5:
  1373.                     replace "&r&5&l+3" with "&r&5&l+4" in {retool.name.%player%}
  1374.                     set the name of {tool.%player%} to {retool.name.%player%}
  1375.                     message "&c&l[強化成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l4"
  1376.                 else if {percent.%player%} is between 6 and 9:
  1377.                     replace "&r&5&l+3" with "&r&5&l+2" in {retool.name.%player%}
  1378.                     set the name of {tool.%player%} to {retool.name.%player%}
  1379.                     message "&3&l[強化失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l2"
  1380.                 else if {percent.%player%} is 10:
  1381.                     replace "&r&5&l+3" with "&r&5&l+1" in {retool.name.%player%}
  1382.                     set the name of {tool.%player%} to {retool.name.%player%}
  1383.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l1"
  1384.             else if {tool.name.%player%} contains "4":
  1385.                 play sound "block.anvil.use" with pitch 2 at player
  1386.                 remove 1 of held item from player
  1387.                 set {percent.%player%} to random integer between 1 and 10
  1388.                 if {percent.%player%} is 1:
  1389.                     replace "&r&5&l+4" with "&r&5&l+6" in {retool.name.%player%}
  1390.                     set the name of {tool.%player%} to {retool.name.%player%}
  1391.                     message "&c&l[強化大成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l6"
  1392.                 else if {percent.%player%} is between 2 and 5:
  1393.                     replace "&r&5&l+4" with "&r&5&l+5" in {retool.name.%player%}
  1394.                     set the name of {tool.%player%} to {retool.name.%player%}
  1395.                     message "&c&l[強化成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l5"
  1396.                 else if {percent.%player%} is between 6 and 9:
  1397.                     replace "&r&5&l+4" with "&r&5&l+3" in {retool.name.%player%}
  1398.                     set the name of {tool.%player%} to {retool.name.%player%}
  1399.                     message "&3&l[強化失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l3"
  1400.                 else if {percent.%player%} is 10:
  1401.                     replace "&r&5&l+4" with "&r&5&l+2" in {retool.name.%player%}
  1402.                     set the name of {tool.%player%} to {retool.name.%player%}
  1403.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l2"
  1404.             else if {tool.name.%player%} contains "5":
  1405.                 play sound "block.anvil.use" with pitch 2 at player
  1406.                 remove 1 of held item from player
  1407.                 set {percent.%player%} to random integer between 1 and 10
  1408.                 if {percent.%player%} is 1:
  1409.                     replace "&r&5&l+5" with "&r&5&l+7" in {retool.name.%player%}
  1410.                     set the name of {tool.%player%} to {retool.name.%player%}
  1411.                     message "&c&l[強化大成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l7"
  1412.                 else if {percent.%player%} is between 2 and 5:
  1413.                     replace "&r&5&l+5" with "&r&5&l+6" in {retool.name.%player%}
  1414.                     set the name of {tool.%player%} to {retool.name.%player%}
  1415.                     message "&c&l[強化成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l6"
  1416.                 else if {percent.%player%} is between 6 and 9:
  1417.                     replace "&r&5&l+5" with "&r&5&l+4" in {retool.name.%player%}
  1418.                     set the name of {tool.%player%} to {retool.name.%player%}
  1419.                     message "&3&l[強化失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l4"
  1420.                 else if {percent.%player%} is 10:
  1421.                     replace "&r&5&l+5" with "&r&5&l+3" in {retool.name.%player%}
  1422.                     set the name of {tool.%player%} to {retool.name.%player%}
  1423.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l3"
  1424.             else if {tool.name.%player%} contains "6":
  1425.                 play sound "block.anvil.use" with pitch 2 at player
  1426.                 remove 1 of held item from player
  1427.                 set {percent.%player%} to random integer between 1 and 10
  1428.                 if {percent.%player%} is 1:
  1429.                     replace "&r&5&l+6" with "&r&5&l+8" in {retool.name.%player%}
  1430.                     set the name of {tool.%player%} to {retool.name.%player%}
  1431.                     message "&c&l[強化大成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l8"
  1432.                 else if {percent.%player%} is between 2 and 5:
  1433.                     replace "&r&5&l+6" with "&r&5&l+7" in {retool.name.%player%}
  1434.                     set the name of {tool.%player%} to {retool.name.%player%}
  1435.                     message "&c&l[強化成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l7"
  1436.                 else if {percent.%player%} is between 6 and 9:
  1437.                     replace "&r&5&l+6" with "&r&5&l+5" in {retool.name.%player%}
  1438.                     set the name of {tool.%player%} to {retool.name.%player%}
  1439.                     message "&3&l[強化失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l5"
  1440.                 else if {percent.%player%} is 10:
  1441.                     replace "&r&5&l+6" with "&r&5&l+4" in {retool.name.%player%}
  1442.                     set the name of {tool.%player%} to {retool.name.%player%}
  1443.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l4"
  1444.             else if {tool.name.%player%} contains "7":
  1445.                 play sound "block.anvil.use" with pitch 2 at player
  1446.                 remove 1 of held item from player
  1447.                 set {percent.%player%} to random integer between 1 and 10
  1448.                 if {percent.%player%} is 1:
  1449.                     replace "&r&5&l+7" with "&r&5&l+9" in {retool.name.%player%}
  1450.                     set the name of {tool.%player%} to {retool.name.%player%}
  1451.                     message "&c&l[強化大成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l9"
  1452.                 else if {percent.%player%} is between 2 and 5:
  1453.                     replace "&r&5&l+7" with "&r&5&l+8" in {retool.name.%player%}
  1454.                     set the name of {tool.%player%} to {retool.name.%player%}
  1455.                     message "&c&l[強化成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l8"
  1456.                 else if {percent.%player%} is between 6 and 9:
  1457.                     replace "&r&5&l+7" with "&r&5&l+6" in {retool.name.%player%}
  1458.                     set the name of {tool.%player%} to {retool.name.%player%}
  1459.                     message "&3&l[強化失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l6"
  1460.                 else if {percent.%player%} is 10:
  1461.                     replace "&r&5&l+7" with "&r&5&l+5" in {retool.name.%player%}
  1462.                     set the name of {tool.%player%} to {retool.name.%player%}
  1463.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l5"
  1464.             else if {tool.name.%player%} contains "8":
  1465.                 play sound "block.anvil.use" with pitch 2 at player
  1466.                 remove 1 of held item from player
  1467.                 set {percent.%player%} to random integer between 1 and 10
  1468.                 if {percent.%player%} is 1:
  1469.                     replace "&r&5&l+8" with "&r&5&l+10" in {retool.name.%player%}
  1470.                     set the name of {tool.%player%} to {retool.name.%player%}
  1471.                     message "&c&l[強化大成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l10"
  1472.                 else if {percent.%player%} is between 2 and 5:
  1473.                     replace "&r&5&l+8" with "&r&5&l+9" in {retool.name.%player%}
  1474.                     set the name of {tool.%player%} to {retool.name.%player%}
  1475.                     message "&c&l[強化成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l9"
  1476.                 else if {percent.%player%} is between 6 and 9:
  1477.                     replace "&r&5&l+8" with "&r&5&l+7" in {retool.name.%player%}
  1478.                     set the name of {tool.%player%} to {retool.name.%player%}
  1479.                     message "&3&l[強化失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l7"
  1480.                 else if {percent.%player%} is 10:
  1481.                     replace "&r&5&l+8" with "&r&5&l+6" in {retool.name.%player%}
  1482.                     set the name of {tool.%player%} to {retool.name.%player%}
  1483.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l6"
  1484.             else if {tool.name.%player%} contains "9":
  1485.                 play sound "block.anvil.use" with pitch 2 at player
  1486.                 remove 1 of held item from player
  1487.                 set {percent.%player%} to random integer between 1 and 10
  1488.                 if {percent.%player%} is 1:
  1489.                     replace "&r&5&l+9" with "&r&5&l+10" in {retool.name.%player%}
  1490.                     set the name of {tool.%player%} to {retool.name.%player%}
  1491.                     message "&c&l[強化大成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  1492.                 else if {percent.%player%} is between 2 and 5:
  1493.                     replace "&r&5&l+9" with "&r&5&l+10" in {retool.name.%player%}
  1494.                     set the name of {tool.%player%} to {retool.name.%player%}
  1495.                     message "&c&l[強化成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  1496.                 else if {percent.%player%} is between 6 and 9:
  1497.                     replace "&r&5&l+9" with "&r&5&l+8" in {retool.name.%player%}
  1498.                     set the name of {tool.%player%} to {retool.name.%player%}
  1499.                     message "&3&l[強化失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l8"
  1500.                 else if {percent.%player%} is 10:
  1501.                     replace "&r&5&l+9" with "&r&5&l+7" in {retool.name.%player%}
  1502.                     set the name of {tool.%player%} to {retool.name.%player%}
  1503.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l7"
  1504.             else:
  1505.                 play sound "block.anvil.use" with pitch 2 at player
  1506.                 remove 1 of held item from player
  1507.                 set {percent.%player%} to random integer between 1 and 10
  1508.                 if {percent.%player%} is 1:
  1509.                     replace "&r&5&l" with "&r&5&l+2" in {retool.name.%player%}
  1510.                     set the name of {tool.%player%} to {retool.name.%player%}
  1511.                     message "&c&l[強化大成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l2"
  1512.                 else if {percent.%player%} is between 2 and 5:
  1513.                     replace "&r&5&l" with "&r&5&l+1" in {retool.name.%player%}
  1514.                     set the name of {tool.%player%} to {retool.name.%player%}
  1515.                     message "&c&l[強化成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l1"
  1516.                 else if {percent.%player%} is between 6 and 9:
  1517.                     message "&3&l[強化失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  1518.                 else if {percent.%player%} is 10:
  1519.                     message "&3&l[強化大失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  1520.     else if name of held item is "&7&l強化リセット石":
  1521.         name of {tool.%player%} contains "+"
  1522.         message "&6&l武器強化をリセットしました"
  1523.         play sound "block.anvil.use" with pitch 2 at player
  1524.         set {tool.name.%player%} to name of {tool.%player%}
  1525.         replace "&r&c&l+10" with "&r&c&l" in {tool.name.%player%}
  1526.         replace "&r&c&l+1" with "&r&c&l" in {tool.name.%player%}
  1527.         replace "&r&c&l+2" with "&r&c&l" in {tool.name.%player%}
  1528.         replace "&r&c&l+3" with "&r&c&l" in {tool.name.%player%}
  1529.         replace "&r&c&l+4" with "&r&c&l" in {tool.name.%player%}
  1530.         replace "&r&c&l+5" with "&r&c&l" in {tool.name.%player%}
  1531.         replace "&r&c&l+6" with "&r&c&l" in {tool.name.%player%}
  1532.         replace "&r&c&l+7" with "&r&c&l" in {tool.name.%player%}
  1533.         replace "&r&c&l+8" with "&r&c&l" in {tool.name.%player%}
  1534.         replace "&r&c&l+9" with "&r&c&l" in {tool.name.%player%}
  1535.         replace "&r&4&l+10" with "&r&4&l" in {tool.name.%player%}
  1536.         replace "&r&4&l+11" with "&r&4&l" in {tool.name.%player%}
  1537.         replace "&r&4&l+12" with "&r&4&l" in {tool.name.%player%}
  1538.         replace "&r&4&l+13" with "&r&4&l" in {tool.name.%player%}
  1539.         replace "&r&4&l+14" with "&r&4&l" in {tool.name.%player%}
  1540.         replace "&r&4&l+15" with "&r&4&l" in {tool.name.%player%}
  1541.         replace "&r&4&l+16" with "&r&4&l" in {tool.name.%player%}
  1542.         replace "&r&4&l+17" with "&r&4&l" in {tool.name.%player%}
  1543.         replace "&r&4&l+18" with "&r&4&l" in {tool.name.%player%}
  1544.         replace "&r&4&l+19" with "&r&4&l" in {tool.name.%player%}
  1545.         replace "&r&4&l+20" with "&r&4&l" in {tool.name.%player%}
  1546.         replace "&r&4&l+1" with "&r&4&l" in {tool.name.%player%}
  1547.         replace "&r&4&l+2" with "&r&4&l" in {tool.name.%player%}
  1548.         replace "&r&4&l+3" with "&r&4&l" in {tool.name.%player%}
  1549.         replace "&r&4&l+4" with "&r&4&l" in {tool.name.%player%}
  1550.         replace "&r&4&l+5" with "&r&4&l" in {tool.name.%player%}
  1551.         replace "&r&4&l+6" with "&r&4&l" in {tool.name.%player%}
  1552.         replace "&r&4&l+7" with "&r&4&l" in {tool.name.%player%}
  1553.         replace "&r&4&l+8" with "&r&4&l" in {tool.name.%player%}
  1554.         replace "&r&4&l+9" with "&r&4&l" in {tool.name.%player%}
  1555.         replace "&r&5&l+10" with "&r&5&l" in {tool.name.%player%}
  1556.         replace "&r&5&l+11" with "&r&5&l" in {tool.name.%player%}
  1557.         replace "&r&5&l+12" with "&r&5&l" in {tool.name.%player%}
  1558.         replace "&r&5&l+13" with "&r&5&l" in {tool.name.%player%}
  1559.         replace "&r&5&l+14" with "&r&5&l" in {tool.name.%player%}
  1560.         replace "&r&5&l+15" with "&r&5&l" in {tool.name.%player%}
  1561.         replace "&r&5&l+16" with "&r&5&l" in {tool.name.%player%}
  1562.         replace "&r&5&l+17" with "&r&5&l" in {tool.name.%player%}
  1563.         replace "&r&5&l+18" with "&r&5&l" in {tool.name.%player%}
  1564.         replace "&r&5&l+19" with "&r&5&l" in {tool.name.%player%}
  1565.         replace "&r&5&l+20" with "&r&5&l" in {tool.name.%player%}
  1566.         replace "&r&5&l+21" with "&r&5&l" in {tool.name.%player%}
  1567.         replace "&r&5&l+22" with "&r&5&l" in {tool.name.%player%}
  1568.         replace "&r&5&l+23" with "&r&5&l" in {tool.name.%player%}
  1569.         replace "&r&5&l+24" with "&r&5&l" in {tool.name.%player%}
  1570.         replace "&r&5&l+25" with "&r&5&l" in {tool.name.%player%}
  1571.         replace "&r&5&l+26" with "&r&5&l" in {tool.name.%player%}
  1572.         replace "&r&5&l+27" with "&r&5&l" in {tool.name.%player%}
  1573.         replace "&r&5&l+28" with "&r&5&l" in {tool.name.%player%}
  1574.         replace "&r&5&l+29" with "&r&5&l" in {tool.name.%player%}
  1575.         replace "&r&5&l+30" with "&r&5&l" in {tool.name.%player%}
  1576.         replace "&r&5&l+1" with "&r&5&l" in {tool.name.%player%}
  1577.         replace "&r&5&l+2" with "&r&5&l" in {tool.name.%player%}
  1578.         replace "&r&5&l+3" with "&r&5&l" in {tool.name.%player%}
  1579.         replace "&r&5&l+4" with "&r&5&l" in {tool.name.%player%}
  1580.         replace "&r&5&l+5" with "&r&5&l" in {tool.name.%player%}
  1581.         replace "&r&5&l+6" with "&r&5&l" in {tool.name.%player%}
  1582.         replace "&r&5&l+7" with "&r&5&l" in {tool.name.%player%}
  1583.         replace "&r&5&l+8" with "&r&5&l" in {tool.name.%player%}
  1584.         replace "&r&5&l+9" with "&r&5&l" in {tool.name.%player%}
  1585.         set the name of {tool.%player%} to {tool.name.%player%}
  1586.         remove 1 of held item from player
  1587.     else if {tool.%player%} is set:
  1588.         give {tool.%player%} to player
  1589.         delete {tool.%player%}
  1590.         message "&a武器を戻しました"
  1591.  
  1592. on rightclick on end portal frame:
  1593.     block under the event-block is iron block
  1594.     cancel event
  1595.     if name of held item contains "&r&c&l+10":
  1596.         if {tool2.%player%} is set:
  1597.             message "&c既に武器がセットされています"
  1598.         else if {tool2.%player%} is not set:
  1599.             set {tool2.%player%} to player's tool
  1600.             set {tool2.name.%player%} to name of player's tool
  1601.             delete player's tool
  1602.             message "&a武器をセットしました"
  1603.             stop
  1604.     else if name of held item is "&4&l&l限界突破石":
  1605.         if {tool2.%player%} is not set:
  1606.             message "&c武器がセットされていません"
  1607.         else:
  1608.             replace "&r&c&l+10" with "&r&4&l" in {tool2.name.%player%}
  1609.             replace "&r&4&l+20" with "&r&5&l" in {tool2.name.%player%}
  1610.             set the name of {tool2.%player%} to {tool2.name.%player%}
  1611.             remove 1 of held item from player
  1612.             give {tool2.%player%} to player
  1613.             delete {tool2.%player%}
  1614.             message "&6&l武器を限界突破しました"
  1615.             play sound "block.anvil.use" with pitch 2 at player
  1616.     else if {tool2.%player%} is set:
  1617.         give {tool2.%player%} to player
  1618.         delete {tool2.%player%}
  1619.         message "&a武器を戻しました"
  1620.     if name of held item contains "&r&4&l+20":
  1621.         if {tool2.%player%} is set:
  1622.             message "&c既に武器がセットされています"
  1623.         else if {tool2.%player%} is not set:
  1624.             set {tool2.%player%} to player's tool
  1625.             set {tool2.name.%player%} to name of player's tool
  1626.             delete player's tool
  1627.             message "&a武器をセットしました"
  1628.             stop
  1629.     else if name of held item is "&4&l&l限界突破石":
  1630.         if {tool2.%player%} is not set:
  1631.             message "&c武器がセットされていません"
  1632.         else:
  1633.             replace "&r&4&l+20" with "&r&4&l" in {tool2.name.%player%}
  1634.             set the name of {tool2.%player%} to {tool2.name.%player%}
  1635.             remove 1 of held item from player
  1636.             give {tool2.%player%} to player
  1637.             delete {tool2.%player%}
  1638.             message "&6&l武器を限界突破しました"
  1639.             play sound "block.anvil.use" with pitch 2 at player
  1640.     else if {tool2.%player%} is set:
  1641.         give {tool2.%player%} to player
  1642.         delete {tool2.%player%}
  1643.         message "&a武器を戻しました"
  1644.  
  1645. on damage:
  1646.     if damage was caused by fall:
  1647.         victim has feather of Feather Falling
  1648.         cancel event
  1649.     else:
  1650.         set {damage.%attacker%} to damage * (100+{AttackBonus.%attacker%})/100
  1651.         set {damage2.%attacker%} to {damage.%attacker%}
  1652.         set {vichplog.%attacker%} to health of victim * 2
  1653.         set damage to {damage.%attacker%}
  1654.         wait a tick
  1655.         set {damage.%attacker%} to {damage.%attacker%}*2
  1656.         set {damage2.%attacker%} to {damage.%attacker%}
  1657.         set {maxhpvic.%attacker%} to max health of victim * 2
  1658.         set {hpvic.%attacker%} to round(health of victim * 2)
  1659.         set {damagelogatt.%attacker%} to round({vichplog.%attacker%} - {hpvic.%attacker%})
  1660.         if name of victim is set:
  1661.             add {damagelogatt.%attacker%} to {alldamage.%attacker%}
  1662.             {damagelog.%attacker%} is 1
  1663.             send "%name of victim% &c&l-%{damagelogatt.%attacker%}% &a&l%{maxhpvic.%attacker%}%/%{hpvic.%attacker%}% " to attacker
  1664.         else:
  1665.             add {damagelogatt.%attacker%} to {alldamage.%attacker%}
  1666.             {damagelog.%attacker%} is 1
  1667.             send "&a&l%type of victim% &c&l-%{damagelogatt.%attacker%}% &a&l%{maxhpvic.%attacker%}%/%{hpvic.%attacker%}% " to attacker
  1668.  
  1669. on tool change:
  1670.     delete {AttackBonus.%player%}
  1671.     if name of player's tool contains "&r&c&l":
  1672.         if name of player's tool contains "10":
  1673.             set {AttackBonus.%player%} to 10
  1674.             stop
  1675.         else if name of player's tool contains "1":
  1676.             set {AttackBonus.%player%} to 1
  1677.         else if name of player's tool contains "2":
  1678.             set {AttackBonus.%player%} to 2
  1679.         else if name of player's tool contains "3":
  1680.             set {AttackBonus.%player%} to 3
  1681.         else if name of player's tool contains "4":
  1682.             set {AttackBonus.%player%} to 4
  1683.         else if name of player's tool contains "5":
  1684.             set {AttackBonus.%player%} to 5
  1685.         else if name of player's tool contains "6":
  1686.             set {AttackBonus.%player%} to 6
  1687.         else if name of player's tool contains "7":
  1688.             set {AttackBonus.%player%} to 7
  1689.         else if name of player's tool contains "8":
  1690.             set {AttackBonus.%player%} to 8
  1691.         else if name of player's tool contains "9":
  1692.             set {AttackBonus.%player%} to 9
  1693.     else if name of player's tool contains "&r&4&l":
  1694.         if name of player's tool contains "10":
  1695.             set {AttackBonus.%player%} to 10
  1696.         else if name of player's tool contains "11":
  1697.             set {AttackBonus.%player%} to 11
  1698.         else if name of player's tool contains "12":
  1699.             set {AttackBonus.%player%} to 12
  1700.         else if name of player's tool contains "13":
  1701.             set {AttackBonus.%player%} to 13
  1702.         else if name of player's tool contains "14":
  1703.             set {AttackBonus.%player%} to 14
  1704.         else if name of player's tool contains "15":
  1705.             set {AttackBonus.%player%} to 15
  1706.         else if name of player's tool contains "16":
  1707.             set {AttackBonus.%player%} to 16
  1708.         else if name of player's tool contains "17":
  1709.             set {AttackBonus.%player%} to 17
  1710.         else if name of player's tool contains "18":
  1711.             set {AttackBonus.%player%} to 18
  1712.         else if name of player's tool contains "19":
  1713.             set {AttackBonus.%player%} to 19
  1714.         else if name of player's tool contains "20":
  1715.             set {AttackBonus.%player%} to 20
  1716.         else if name of player's tool contains "1":
  1717.             set {AttackBonus.%player%} to 1
  1718.         else if name of player's tool contains "2":
  1719.             set {AttackBonus.%player%} to 2
  1720.         else if name of player's tool contains "3":
  1721.             set {AttackBonus.%player%} to 3
  1722.         else if name of player's tool contains "4":
  1723.             set {AttackBonus.%player%} to 4
  1724.         else if name of player's tool contains "5":
  1725.             set {AttackBonus.%player%} to 5
  1726.         else if name of player's tool contains "6":
  1727.             set {AttackBonus.%player%} to 6
  1728.         else if name of player's tool contains "7":
  1729.             set {AttackBonus.%player%} to 7
  1730.         else if name of player's tool contains "8":
  1731.             set {AttackBonus.%player%} to 8
  1732.         else if name of player's tool contains "9":
  1733.             set {AttackBonus.%player%} to 9
  1734.     else if name of player's tool contains "&r&5&l":
  1735.         if name of player's tool contains "10":
  1736.             set {AttackBonus.%player%} to 10
  1737.         else if name of player's tool contains "11":
  1738.             set {AttackBonus.%player%} to 11
  1739.         else if name of player's tool contains "12":
  1740.             set {AttackBonus.%player%} to 12
  1741.         else if name of player's tool contains "13":
  1742.             set {AttackBonus.%player%} to 13
  1743.         else if name of player's tool contains "14":
  1744.             set {AttackBonus.%player%} to 14
  1745.         else if name of player's tool contains "15":
  1746.             set {AttackBonus.%player%} to 15
  1747.         else if name of player's tool contains "16":
  1748.             set {AttackBonus.%player%} to 16
  1749.         else if name of player's tool contains "17":
  1750.             set {AttackBonus.%player%} to 17
  1751.         else if name of player's tool contains "18":
  1752.             set {AttackBonus.%player%} to 18
  1753.         else if name of player's tool contains "19":
  1754.             set {AttackBonus.%player%} to 19
  1755.         else if name of player's tool contains "20":
  1756.             set {AttackBonus.%player%} to 20
  1757.         else if name of player's tool contains "21":
  1758.             set {AttackBonus.%player%} to 21
  1759.         else if name of player's tool contains "22":
  1760.             set {AttackBonus.%player%} to 22
  1761.         else if name of player's tool contains "23":
  1762.             set {AttackBonus.%player%} to 23
  1763.         else if name of player's tool contains "24":
  1764.             set {AttackBonus.%player%} to 24
  1765.         else if name of player's tool contains "25":
  1766.             set {AttackBonus.%player%} to 25
  1767.         else if name of player's tool contains "26":
  1768.             set {AttackBonus.%player%} to 26
  1769.         else if name of player's tool contains "27":
  1770.             set {AttackBonus.%player%} to 27
  1771.         else if name of player's tool contains "28":
  1772.             set {AttackBonus.%player%} to 28
  1773.         else if name of player's tool contains "29":
  1774.             set {AttackBonus.%player%} to 29
  1775.         else if name of player's tool contains "30":
  1776.             set {AttackBonus.%player%} to 30
  1777.         else if name of player's tool contains "1":
  1778.             set {AttackBonus.%player%} to 1
  1779.         else if name of player's tool contains "2":
  1780.             set {AttackBonus.%player%} to 2
  1781.         else if name of player's tool contains "3":
  1782.             set {AttackBonus.%player%} to 3
  1783.         else if name of player's tool contains "4":
  1784.             set {AttackBonus.%player%} to 4
  1785.         else if name of player's tool contains "5":
  1786.             set {AttackBonus.%player%} to 5
  1787.         else if name of player's tool contains "6":
  1788.             set {AttackBonus.%player%} to 6
  1789.         else if name of player's tool contains "7":
  1790.             set {AttackBonus.%player%} to 7
  1791.         else if name of player's tool contains "8":
  1792.             set {AttackBonus.%player%} to 8
  1793.         else if name of player's tool contains "9":
  1794.             set {AttackBonus.%player%} to 9
  1795.     else:
  1796.         set {AttackBonus.%player%} to 0
  1797.  
  1798. command /setplus <number>:
  1799.     permission: skript.admin
  1800.     trigger:
  1801.         set {tool.plusset.%player%} to name of player's tool
  1802.         replace "&r&c&l" with "&r&c&l+%arg 1%" in {tool.plusset.%player%}
  1803.         replace "&r&4&l" with "&r&4&l+%arg 1%" in {tool.plusset.%player%}
  1804.         replace "&r&5&l" with "&r&5&l+%arg 1%" in {tool.plusset.%player%}
  1805.         set the name of held item to {tool.plusset.%player%}
  1806.  
  1807. options:
  1808.     count : 20
  1809.  
  1810. on tool change:
  1811.     wait 1 tick
  1812.     set {defense.%player%} to 0
  1813.     set {_line} to 1
  1814.     while {_line} is less than or equal to {@count}:
  1815.         if line {_line} of lore of player's helmet contains "防御力:":
  1816.             set {_lore1} to line {_line} of lore of player's helmet
  1817.             stop loop
  1818.         add 1 to {_line}
  1819.     set {_line} to 1
  1820.     while {_line} is less than or equal to {@count}:
  1821.         if line {_line} of lore of player's chestplate contains "防御力:":
  1822.             set {_lore2} to line {_line} of lore of player's chestplate
  1823.             stop loop
  1824.         add 1 to {_line}
  1825.     set {_line} to 1
  1826.     while {_line} is less than or equal to {@count}:
  1827.         if line {_line} of lore of player's leggings contains "防御力:":
  1828.             set {_lore3} to line {_line} of lore of player's leggings
  1829.             stop loop
  1830.         add 1 to {_line}
  1831.     set {_line} to 1
  1832.     while {_line} is less than or equal to {@count}:
  1833.         if line {_line} of lore of player's boots contains "防御力:":
  1834.             set {_lore4} to line {_line} of lore of player's boots
  1835.             stop loop
  1836.         add 1 to {_line}
  1837.     set {_n} to 1
  1838.     loop 4 times:
  1839.         replace "§9§l防御力: " with "" in {_lore%{_n}%}
  1840.         set {_lore%{_n}%} to {_lore%{_n}%} parsed as number
  1841.         add {_lore%{_n}%} to {defense.%player%}
  1842.         add 1 to {_n}
  1843.     set {defense.%player%} to {defense.%player%} / 2
  1844.  
  1845. on damage:
  1846.     victim is a player
  1847.     set {playerdamage.%victim%} to damage - {defense.%victim%}
  1848.     if {playerdamage.%victim%} is greater than or equal to 1:
  1849.         set damage to {playerdamage.%victim%}
  1850.         set {playerdamage.%victim%} to round({playerdamage.%victim%}*2)
  1851.         add {playerdamage.%victim%} to {alldamage2.%victim%}
  1852.         {damagelog.%victim%} is 1
  1853.         send "§c§l%{playerdamage.%victim%}%ダメージ" to victim
  1854.     else:
  1855.         set damage to 0.5
  1856.         add 1 to {alldamage2.%victim%}
  1857.         {damagelog.%victim%} is 1
  1858.         send "§c§l1ダメージ" to victim
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top