SHARE
TWEET

tct-2

kawaneko Dec 8th, 2019 (edited) 618 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on load:
  2.     delete {vote::*}
  3.     set {vote::1::map} to "Mine Mountain Terror's"
  4.     set {vote::1::name} to "SpecialZealot"
  5.     set {vote::2::map} to "デザート"
  6.     set {vote::2::name} to "Futaba_Nyan"
  7.     set {vote::3::map} to "図書館"
  8.     set {vote::3::name} to "sabaibamosu"
  9.     set {vote::4::map} to "でざーと"
  10.     set {vote::4::name} to "Akiki1105"
  11.     set {vote::5::map} to "旅館"
  12.     set {vote::5::name} to "TT_kawaneko,SpecialZealot"
  13.     set {vote::6::map} to "船"
  14.     set {vote::6::name} to "sabaibamosu"
  15.     set {vote::7::map} to "廃坑"
  16.     set {vote::7::name} to "Emi_marin"
  17.  
  18. options:   
  19.     owner : TT_kawaneko
  20.     logo : &2[TCT]
  21. on script Unload:
  22.     broadcast "{@logo} &bTCTSkript reloading... (ラグがしばらくの間続きます)"
  23.     set {now} to now
  24. On Script Load:
  25.     broadcast "{@logo} &bSuccessfully."
  26.     set {_difference} to difference between {now} and now
  27.     broadcast "{@logo} &bReload Time : %{_difference}%"
  28.     delete {now}
  29. on spawn:
  30.     if event-entity is chicken:
  31.         cancel event
  32. function map(p: player):
  33.     open "HOPPER" named "&aPlease Vote a Map" to {_p}
  34.     set slot 1 of {_p}'s current inventory to glowing crafting table named "&2&l%{map1.name}%" with lore "&b《&3║ &7Made &f&a: &d%{map1.made}% &3║&b》" and "&e" and "&e%{ma::%{map1.name}%}%票"
  35.     set slot 2 of {_p}'s current inventory to glowing crafting table named "&2&l%{map2.name}%" with lore "&b《&3║ &7Made &f&a: &d%{map2.made}% &3║&b》" and "&e" and "&e%{ma::%{map2.name}%}%票"
  36.     set slot 3 of {_p}'s current inventory to glowing crafting table named "&2&l%{map3.name}%" with lore "&b《&3║ &7Made &f&a: &d%{map3.made}% &3║&b》" and "&e" and "&e%{ma::%{map3.name}%}%票"
  37.     set slot 0 of {_p}'s current inventory to black stained glass pane named "&a"
  38.     set slot 4 of {_p}'s current inventory to black stained glass pane named "&a"
  39. function sidebar(p: player):
  40.     set {_u} to uuid of {_p}
  41.     wipe {_p}'s sidebar
  42.     set name of sidebar of {_p} to "&2&lTCT-Jinrou"
  43.     set score "&a" in sidebar of {_p} to 13
  44.     set score "&fNeed XP : &b%{agaru.%{_u}%}-{xp.%{_u}%}%" in sidebar of {_p} to 12
  45.     set score "&e" in sidebar of {_p} to 11
  46.     set score "&fOnline Players : &e%{join.number}%" in sidebar of {_p} to 10
  47.     set score "&c" in sidebar of {_p} to 9
  48.     set score "&a役職設定 :" in sidebar of {_p} to 8
  49.     set score "&c  人狼 : %{j.time}%人" in sidebar of {_p} to 7
  50.     set score "&5  狂人 : %{k.time}%人" in sidebar of {_p} to 6
  51.     set score "&b  探偵 : %{t.time}%人" in sidebar of {_p} to 5
  52.     set score "&e  医者 : %{i.time}%人" in sidebar of {_p} to 4
  53.     set score "&d  妖狐 : %{y.time}%人" in sidebar of {_p} to 3
  54.     set score "&6  背徳者 : %{h.time}%人" in sidebar of {_p} to 2
  55.     set score "&d" in sidebar of {_p} to 1
  56.     set score "&e&lPLAY.REZXIS.NET" in sidebar of {_p} to 0
  57.  
  58. function score():
  59.     {game.2} is set
  60.     loop all players:
  61.         {join::*} contains loop-player
  62.         wipe loop-player's sidebar
  63.         set name of sidebar of loop-player to "&bInfo"
  64.         set score "&a残り村人" in sidebar of loop-player to {m.left}
  65.         set score "&c残り人狼" in sidebar of loop-player to {j.left}
  66.         set score "&6&lコイン数" in sidebar of loop-player to {coin::%loop-player%}
  67.         set score "&6貴方の役職:%{yk.%loop-player%}%" in sidebar of loop-player to 0
  68.         if {yk.%loop-player%} is "人狼":
  69.             set score "&a残り村人実数" in sidebar of loop-player to number of {m::*}
  70.             set score "&c残り人狼実数" in sidebar of loop-player to number of {j::*}
  71.         if {t.time} is not 0:
  72.             set score "&b残り探偵" in sidebar of loop-player to {t.left}
  73.             {yk.%loop-player%} is "人狼"
  74.             set score "&b残り探偵実数" in sidebar of loop-player to number of {t::*}
  75.         if {y.time} is not 0:
  76.             set score "&d残り妖狐" in sidebar of loop-player to {y.left}
  77.             {yk.%loop-player%} is "人狼"
  78.             set score "&d残り妖狐実数" in sidebar of loop-player to number of {y::*}
  79.         if {i.time} is not 0:
  80.             set score "&e残り医者" in sidebar of loop-player to {i.left}
  81.             {yk.%loop-player%} is "人狼"
  82.             set score "&e残り医者実数" in sidebar of loop-player to number of {i::*}
  83.         if {k.time} is not 0:
  84.             set score "&5残り狂人" in sidebar of loop-player to {k.left}
  85.             {yk.%loop-player%} is "人狼"
  86.             set score "&5残り狂人実数" in sidebar of loop-player to number of {k::*}
  87.         if {h.time} is not 0:
  88.             set score "&6残り背徳者" in sidebar of loop-player to {h.left}
  89.             {yk.%loop-player%} is "人狼"
  90.             set score "&6残り背徳者実数" in sidebar of loop-player to number of {h::*}
  91. function endm():
  92.     if {j.h::*} is set:
  93.         broadcast "{@logo} %{win.color}%人狼は以下の人たちです。[%{j.h::*}%]"
  94.     if {k.h::*} is set:
  95.         broadcast "{@logo} %{win.color}%狂人は以下の人たちです。[%{k.h::*}%]"
  96.     if {t.h::*} is set:
  97.         broadcast "{@logo} %{win.color}%探偵は以下の人たちです。[%{t.h::*}%]"
  98.     if {i.h::*} is set:
  99.         broadcast "{@logo} %{win.color}%医者は以下の人たちです。[%{i.h::*}%]"
  100.     if {y.h::*} is set:
  101.         broadcast "{@logo} %{win.color}%妖狐は以下の人たちです。[%{y.h::*}%]"
  102.     if {h.h::*} is set:
  103.         broadcast "{@logo} %{win.color}%背徳者は以下の人たちです。[%{h.h::*}%]"
  104.     end()
  105. function winj():
  106.     add 1 to {win.j}
  107.     add 1 to {lose.m}
  108.     if {time.y} is not 0:
  109.         add 1 to {lose.y}
  110.     loop all players:
  111.         {join::*} contains loop-player
  112.         if {j.h::*} contains loop-player:
  113.             add 1 to {win::%loop-player%}
  114.             add 150 to {xp.%uuid of loop-player%}
  115.             send "{@logo} &b+150XP (勝利ボーナス)" to loop-player
  116.         else if {k.h::*} contains loop-player:
  117.             add 1 to {win::%loop-player%}
  118.             add 150 to {xp.%uuid of loop-player%}
  119.             send "{@logo} &b+150XP (勝利ボーナス)" to loop-player
  120.         else:
  121.             add 1 to {lose::%loop-player%}
  122.             add 70 to {xp.%uuid of loop-player%}
  123.             send "{@logo} &b+70XP (参加ボーナス)" to loop-player
  124.         levelup(loop-player)
  125. function winm():
  126.     add 1 to {win.m}
  127.     add 1 to {lose.j}
  128.     if {time.y} is not 0:
  129.         add 1 to {lose.y}
  130.     loop all players:
  131.         {join::*} contains loop-player
  132.         if {m.h::*} contains loop-player:
  133.             add 1 to {win::%loop-player%}
  134.             add 150 to {xp.%uuid of loop-player%}
  135.             send "{@logo} &b+150XP (勝利ボーナス)" to loop-player
  136.         else if {t.h::*} contains loop-player:
  137.             add 1 to {win::%loop-player%}
  138.             add 150 to {xp.%uuid of loop-player%}
  139.             send "{@logo} &b+150XP (勝利ボーナス)" to loop-player
  140.         else if {i.h::*} contains loop-player:
  141.             add 1 to {win::%loop-player%}
  142.             add 150 to {xp.%uuid of loop-player%}
  143.             send "{@logo} &b+150XP (勝利ボーナス)" to loop-player
  144.         else:
  145.             add 1 to {lose::%loop-player%}
  146.             add 70 to {xp.%uuid of loop-player%}
  147.             send "{@logo} &b+70XP (参加ボーナス)" to loop-player
  148. function winy():
  149.     add 1 to {win.y}
  150.     add 1 to {lose.m}
  151.     add 1 to {lose.j}
  152.     loop all players:
  153.         {join::*} contains loop-player
  154.         if {y.h::*} contains loop-player:
  155.             add 1 to {win::%loop-player%}
  156.             add 150 to {xp.%uuid of loop-player%}
  157.             send "{@logo} &b+150XP (勝利ボーナス)" to loop-player
  158.         else if {h.h::*} contains loop-player:
  159.             add 1 to {win::%loop-player%}
  160.             add 150 to {xp.%uuid of loop-player%}
  161.             send "{@logo} &b+150XP (勝利ボーナス)" to loop-player
  162.         else:
  163.             add 1 to {lose::%loop-player%}
  164.             add 70 to {xp.%uuid of loop-player%}
  165.             send "{@logo} &b+70XP (参加ボーナス)" to loop-player
  166. function lobbyitem(i: player):
  167.     set {_player} to "%{_i}%" parsed as player
  168.     set slot 0 of {_i} to enchanted book named "&e各陣営の勝率"
  169.     set slot 1 of {_i} to chest named "&eYour settings"
  170.     set slot 4 of {_i} to {_player}'s skull named "&eYour Status"
  171.     if {auto.%{_i}%} is true:
  172.         set slot 7 of {_i} to lime dye named "&9《&a試合に参加&9》"
  173.     else if {auto.%{_i}%} is false:
  174.         set slot 7 of {_i} to gray dye named "&9《&c試合に不参加&9》"
  175.     set slot 8 of {_i} to diamond named "&aOnline Players"
  176. function setting(s: player):
  177.     open chest with 3 rows named "&eSettings" to {_s}
  178.     command "execute %{_s}% ~ ~ ~ /playsound minecraft:block.note.harp master %{_s}% ~ ~ ~ 1 0.5"
  179.     if {chat.sound.%{_s}%} is not set:
  180.         set slot 10 of {_s}'s current inventory to water bucket named "&aチャット時の音 : ON"
  181.     else:
  182.         set slot 10 of {_s}'s current inventory to empty bucket named "&aチャット時の音 : &cOFF"
  183.     if {paper.yk.%{_s}%} is not set:
  184.         set slot 11 of {_s}'s current inventory to water bucket named "&a開始時に役職の紙を渡す : ON"
  185.     else:
  186.         set slot 11 of {_s}'s current inventory to empty bucket named "&a開始時に役職の紙を渡す : &cOFF"
  187.     if {check.%{_s}%} is not set:
  188.         set slot 12 of {_s}'s current inventory to water bucket named "&aName Checker : ON"
  189.     else:
  190.         set slot 12 of {_s}'s current inventory to empty bucket named "&aName Checker : &cOFF"
  191. function death(d: player):
  192.     {game.2} is true
  193.     clear {_d}'s inventory
  194.     if {j::*} contains {_d}:
  195.         remove {_d} from {j::*}
  196.     else if {t::*} contains {_d}:
  197.         remove 1 from {mu}
  198.         remove {_d} from {t::*}
  199.     else if {i::*} contains {_d}:
  200.         remove 1 from {mu}
  201.         remove {_d} from {i::*}
  202.     else if {m::*} contains {_d}:
  203.         remove 1 from {mu}
  204.         remove {_d} from {m::*}
  205.     else if {y::*} contains {_d}:
  206.         remove {_d} from {y::*}
  207.     else if {k::*} contains {_d}:
  208.         remove {_d} from {k::*}
  209.     else if {h::*} contains {_d}:
  210.         remove {_d} from {h::*}
  211. function levelup(l: player):
  212.     loop 5 times:
  213.         set {_uu} to uuid of {_l}
  214.         if {xp.%{_uu}%} is greater or equal to {agaru.%{_uu}%}:
  215.             add 1 to {level::%{_uu}%}
  216.             command "execute %{_l}% ~ ~ ~ /playsound minecraft:entity.player.levelup master %{_l}%"
  217.             send "{@logo} &6==============================" to {_l}
  218.             send "{@logo} &5&l      Level Up!" to {_l}
  219.             send "{@logo} &e         %{level::%{_uu}%} - 1% &6→ &b%{level::%{_uu}%}%" to {_l}
  220.             send "{@logo} &6==============================" to {_l}
  221.             send {_l} title "&c&k||&5&lLevel Up!!&c&k||" with subtitle "&b&l%{level::%{_uu}%} - 1% &e→ &6&l%{level::%{_uu}%}%" for 4 seconds
  222.             remove {agaru.%{_uu}%} from {xp.%{_uu}%}
  223.             add 100 to {agaru.%{_uu}%}
  224.             set {ranking.level::%{_l}%} to {level::%{_uu}%}
  225.             if {_n} is not set:
  226.                 command "execute %{_l}% ~ ~ ~ /playsound minecraft:ui.toast.challenge_complete master %{_l}% ~ ~ ~ 1"
  227.                 set {_n} to "aa"
  228.         else:
  229.             stop loop
  230. function end():
  231.     wait 2 ticks
  232.     delete {game}
  233.     delete {game.2}
  234.     wait 2 ticks
  235.     set {_high} to 0
  236.     broadcast "{@logo} &7--------=&8【&6&lKillランキング&8】&7=--------"
  237.     loop {game.kill::*}:
  238.         set {_list::%loop-index%} to loop-value
  239.     loop 3 times:
  240.         loop {_list::*}:
  241.             loop-value-2 > {_high}
  242.             set {_high} to loop-value-2
  243.             set {_player} to loop-index parsed as player
  244.             set {_hp} to loop-index
  245.         if {_player} is set:
  246.             if {message.%{_player}%} is "&c":
  247.                 broadcast "{@logo}      &e%loop-number%. &7%{_player}% - &e%{_high}%Kills &7(%{yk.%{_player}%}%)"
  248.             else:
  249.                 broadcast "{@logo}      &e%loop-number%. %{message.%{_player}%}%%{_player}% - &e%{_high}%Kills &7(%{yk.%{_player}%}%)"
  250.         else:
  251.             broadcast "{@logo}      &e%loop-number%. &7null - &e0Kills &7(null)"
  252.         set {_h} to 0
  253.         delete {_list::%{_hp}%}
  254.         delete {_player}
  255.     broadcast "{@logo} &7------------------------------------------"
  256.     loop all players:
  257.         sidebar(loop-player)
  258.         set loop-player's hunger to 20
  259.         set loop-player's max health to 10
  260.         set loop-player's health to 20
  261.         set loop-player's hunger to 20
  262.         if {join::*} contains loop-player:
  263.             if loop-player's gamemode is not creative:
  264.                 teleport loop-player to {マップ.lobby}
  265.                 clear loop-player's inventory
  266.                 wait 2 ticks
  267.                 set loop-player's gamemode to survival
  268.             if {a.%loop-player%} is set:
  269.                 send "{@logo} &eあなたは%{a.%loop-player%}%に殺されました &9《&e役職 &7: &6%{yk.%{a.%loop-player%}%}%&9》" to loop-player
  270.                 delete {a.%loop-player%}
  271.     delete {join::*}
  272.     loop all players:
  273.         delete {dia.%loop-player%}
  274.         command "/effect %loop-player% clear"
  275.         delete {buylist.%loop-player%::*}
  276.         if {auto.%loop-player%} is true:
  277.             add loop-player to {join::*}
  278.             set loop-player's tablist name to "&5[&6Lv.%{level::%uuid of loop-player%}%&5]&a%loop-player%"
  279.         else:
  280.             set loop-player's tablist name to "&5[&6Lv.%{level::%uuid of loop-player%}%&5]&c%loop-player%"
  281.         set {co.%loop-player%} to "&c[村人]"
  282.         delete {yk.%loop-player%}
  283.         if {death::*} contains loop-player:
  284.             if loop-player's gamemode is not creative:
  285.                 set loop-player's gamemode to survival
  286.                 teleport loop-player to {マップ.lobby}
  287.                 clear loop-player's inventory
  288.         set {now.%loop-player%} to "leave"
  289.     loop {death.reset::*}:
  290.         set {_loc::*} to substring of loop-index from 7 to length of loop-index split at ","  
  291.         set {_x} to {_loc::1} parsed as number 
  292.         set {_y} to {_loc::2} parsed as number
  293.         set {_z} to {_loc::3} parsed as number
  294.         set block at location ({_x}, {_y}, {_z}) in "world" to loop-value
  295.     loop {t.heal::*}:
  296.         set block at location of loop-value to air
  297.     loop {j.heal::*}:
  298.         set block at location of loop-value to air
  299.     loop all players:
  300.         loop-player's gamemode is not creative
  301.         lobbyitem(loop-player)
  302.     set block at {zi.lc} to air
  303.     delete {zi.lc}
  304.     delete {zi}
  305.     remove bossbar "time"
  306.     delete {com}
  307.     set {c.t} to 0
  308.     delete {t.heal::*}
  309.     delete {j.heal::*}
  310.     delete {m.陣営::*}
  311.     delete {bar.2}
  312.     delete {death::*}  
  313.     delete {youko.heru}
  314.     delete {torch::*}
  315.     set {mu} to 0
  316.     delete {ma::*}
  317.     delete {j::*}
  318.     delete {t::*}
  319.     delete {k::*}
  320.     delete {i::*}
  321.     delete {y::*}
  322.     delete {m::*}
  323.     delete {h::*}
  324.     delete {j.h::*}
  325.     delete {t.h::*}
  326.     delete {k.h::*}
  327.     delete {i.h::*}
  328.     delete {y.h::*}
  329.     delete {m.h::*}
  330.     delete {h.h::*}
  331.     delete {coin::*}
  332.     delete {game.kill::*}
  333.     delete {hakken::*}
  334.     set {j.left} to 0
  335.     set {k.left} to 0
  336.     set {t.left} to 0
  337.     set {i.left} to 0
  338.     set {y.left} to 0
  339.     set {m.left} to 0
  340.     set {h.left} to 0
  341.     delete {zi.lc}
  342.     delete {zi}
  343.     delete {death.floor::*}
  344.     delete {death.reset::*}
  345.     delete {death.time::*}
  346.     wait 1 seconds
  347.     set all players's level to 0
  348.     command "/kill @e[type=item]"
  349.     command "/kill @e[type=arrow]"
  350.     stop
  351. on break:
  352.     if player's gamemode is not creative:
  353.         cancel event
  354. on place:
  355.     if {game} is true:
  356.         set {_item} to event-block
  357.         player's gamemode is not creative
  358.         event-block is not redstone ore
  359.         "SKULL" is not "%{_item}%"
  360.         cancel event
  361.     else:
  362.         player's gamemode is not creative
  363.         cancel event
  364.  
  365. on first join:
  366.     broadcast "&8[&d&lFirst+&8] &a%player%"
  367.     command "/execute @a ~ ~ ~ /playsound minecraft:entity.firework.twinkle ambient @a"
  368. on join:
  369.     set player's health to 20
  370.     set player's hunger to 20
  371.     if {rank.%player%} is "MVP":
  372.         set join message to "&8[&a&l+&8] &b%player%"
  373.     else if {rank.%player%} is "EMERALD":
  374.         set join message to "&8[&a&l+&8] &a&l%player%"
  375.     else:
  376.         set join message to "&8[&a&l+&8] &e%player%"
  377.     command "/execute @a ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup master @a"
  378.     set tab header to "&7----==&8【&2&lTCT-Jinrou&8】&7==----" and footer to "&7---------==========---------" for player
  379. on join:
  380.     set {join.number} to number of all players
  381.     set player's level to 0
  382.     if {de::%player%} is not set:
  383.         set {win::%player%} to 0
  384.         set {lose::%player%} to 0
  385.         set {kill::%player%} to 0
  386.         set {de::%player%} to 0
  387.         set {jo::%player%} to 0
  388.     if {time.j.%player%} is not set:
  389.         set {time.j.%player%} to 0
  390.         set {time.k.%player%} to 0
  391.         set {time.t.%player%} to 0
  392.         set {time.i.%player%} to 0
  393.         set {time.y.%player%} to 0
  394.         set {time.m.%player%} to 0
  395.     if {time.h.%player%} is not set:
  396.         set {time.h.%player%} to 0
  397.     if {auto.%player%} is not set:
  398.         set {auto.%player%} to true
  399.     if {rank.%player%} is not set:
  400.         set {rank.%player%} to "none"
  401.     if {message.%player%} is not set:
  402.         set {message.%player%} to "&c"
  403.     if {level::%uuid of player%} is not set:
  404.         set {level::%uuid of player%} to 1
  405.         set {xp.%uuid of player%} to 0
  406.         set {agaru.%uuid of player%} to 200
  407.     set {ranking.level::%player%} to {level::%uuid of player%}
  408.     remove player from {death::*}
  409.     set player's gamemode to survival
  410.     if {game} is not set:
  411.         lobbyitem(player)
  412.         teleport player to {マップ.lobby}
  413.         set player's gamemode to survival
  414.         command "/effect %player% clear"
  415.         if {auto.%player%} is true:
  416.             if {join::*} do not contain player:
  417.                 add player to {join::*}
  418.             set player's tablist name to "&5[&6Lv.%{level::%uuid of player%}%&5]&a%player%"
  419.         else:
  420.             if {join::*} contains player:
  421.                 remove player from {join::*}
  422.             set player's tablist name to "&5[&6Lv.%{level::%uuid of player%}%&5]&c%player%"
  423.         loop all players:
  424.             sidebar(loop-player)
  425.     else:
  426.         send "{@logo} &a試合中のため次の試合まで観戦です"
  427.         teleport player to {マップ.%{highplayer}%}
  428.         if {death::*} do not contain player:
  429.             add player to {death::*}
  430.         set player's gamemode to spectator
  431.         set player's tablist name to "&c%player%"
  432.         set {now.%player%} to "death"
  433.         score()
  434.     if {bar} is set:
  435.         create bossbar titled "&e試合開始まで : %{_time}% seconds" and id "time" for all players with progress 100 with colors green
  436.         set bossbar "time" value to {pro}
  437.     if {bar.2} is set:
  438.         create bossbar titled "&9《 &7残り時間 &7: &d&l%{time}% &7seconds &9》" and id "time" for all players with progress 100 with colors purple
  439.     if {co.%player%} is not set:
  440.         set {co.%player%} to "&c[村人]"
  441. on quit:
  442.     set {join.number} to number of all players-1
  443.     if {game.2} is not set:
  444.         loop all players:
  445.             sidebar(loop-player)
  446.     set quit message to "&8[&c&l-&8] &7%player%"
  447.     if {join::*} contains player:
  448.         remove player from {join::*}
  449.     if {y::*} contains player:
  450.         set {youko.heru} to "set"
  451.     wait 2 ticks
  452.     death(player)
  453.     {game.2} is true
  454.     score()
  455.     wait 2 ticks
  456.     if number of {j::*} is 0:
  457.         if number of {y::*} is greater or equal to 1: #妖狐勝利
  458.             set {win.color} to "&d"
  459.             send all players title "&6妖狐側が勝利しました" with subtitle "&7人狼側全滅時に生き残っていた妖狐の勝利" for 5 seconds
  460.             broadcast "{@logo} &6&l人狼は全滅し、妖狐が生き残りました"
  461.             command "/execute @a ~ ~ ~ playsound minecraft:entity.wither.spawn ambient @a ~ ~ ~ 1.5 1.8"
  462.             winy()
  463.         else:
  464.             set {win.color} to "&a"
  465.             send all players title "&a村人側が勝利しました" with subtitle "&7人狼側全滅による村人側の勝利" for 5 seconds
  466.             broadcast "{@logo} &a&l人狼は全滅しました。"
  467.             command "/execute @a ~ ~ ~ playsound minecraft:entity.villager.yes ambient @a ~ ~ ~ 3"
  468.             winm()
  469.         endm()
  470.     else if {mu} is 0:
  471.         if number of {y::*} is greater or equal to 1:
  472.             set {win.color} to "&d"
  473.             send all players title "&6妖狐側が勝利しました" with subtitle "&7村人側全滅時に生き残っていた妖狐の勝利" for 5 seconds
  474.             broadcast "{@logo} &6&l村人は全滅し、妖狐が生き残りました"
  475.             command "/execute @a ~ ~ ~ playsound minecraft:entity.wither.spawn ambient @a ~ ~ ~ 1.5 1.8"
  476.             winy()
  477.         else:
  478.             set {win.color} to "&c"
  479.             send all players title "&c人狼側が勝利しました" with subtitle "&7村人側全滅による人狼側の勝利" for 5 seconds
  480.             broadcast "{@logo} &c&l村人は全滅しました。"
  481.             command "/execute @a ~ ~ ~ /playsound minecraft:entity.wolf.howl master @a ~ ~ ~ 0.5 1"
  482.             winj()
  483.         endm()
  484. command /back:
  485.     trigger:
  486.         if {game} is true:
  487.             if {death::*} contains player:
  488.                 if player's gamemode is spectator:
  489.                     teleport player to {マップ.lobby}
  490.                     send "{@logo} &aロビーへ戻りました"
  491.                     send "{@logo} &aもう1度コマンドを実行することで観戦に戻ることができます"
  492.                     set player's gamemode to survival
  493.                 else if player's gamemode is survival:
  494.                     teleport player to {マップ.%{highplayer}%}
  495.                     send "{@logo} &a観戦になりました"
  496.                     send "{@logo} &aもう1度コマンドを実行することでロビーに戻れます"
  497.                     set player's gamemode to spectator
  498.             else:
  499.                 send "{@logo} &c観戦者だけが使用可能です"
  500.         else:
  501.             send "{@logo} &cゲームは始まっていません"
  502. command /tlist:
  503.     trigger:
  504.         if {game.2} is true:
  505.             if {death::*} contains player:
  506.                 send "{@logo} &e---------=【&c&l生存者&e】=---------"
  507.                 if {j::*} is set:
  508.                     send "{@logo} &c人狼 : %{j::*}%"
  509.                 if {k::*} is set:
  510.                     send "{@logo} &5狂人 : %{k::*}%"
  511.                 if {t::*} is set:
  512.                     send "{@logo} &b探偵 : %{t::*}%"
  513.                 if {i::*} is set:
  514.                     send "{@logo} &e医者 : %{i::*}%"
  515.                 if {y::*} is set:
  516.                     send "{@logo} &d妖狐 : %{y::*}%"
  517.                 if {h::*} is set:
  518.                     send "{@logo} &6背徳者 : %{h::*}%"
  519.                 send "{@logo} &e-----------------------------------"
  520.             else:
  521.                 send "{@logo} &c観戦者しか使用できません"
  522.         else:
  523.             send "{@logo} &cゲームは始まっていません"
  524.  
  525. command /tct [<text>] [<text>]:
  526.     permission: skript.admin
  527.     permission message : &cYou don't have a permission to use this command.
  528.     trigger:
  529.         if arg-1 is "j" or "k" or "t" or "i" or "y" or "h":
  530.             if arg-2 is set:
  531.                 set {%arg-1%.time} to arg-2 parsed as number
  532.                 send "{@logo} &a%arg-1%を%arg-2%に設定しました"
  533.                 if arg-1 is "y":
  534.                     if arg-2 is "0":
  535.                         set {h.time} to 0
  536.                         send "{@logo} &a背徳者を0に設定しました &7(Auto)"
  537.                 {game} is not set
  538.                 loop all players:
  539.                     sidebar(loop-player)
  540.         if arg-1 is "mode":
  541.             if player's name is "{@owner}":
  542.                 if {game} is not set:
  543.                     if arg-2 is set:
  544.                         set {mode} to arg-2
  545.                         send "{@logo} &eModeを%arg-2%に設定しました"
  546.                         loop all players:
  547.                             sidebar(loop-player)
  548.                 else:
  549.                     send "{@logo} &c試合中に設定することはできません"
  550.             else:
  551.                 send "{@logo} &cオーナーコマンドです"
  552.         if arg-1 is "help":
  553.             send "&e-----=&8【&cHelpCommand】&e=-----"
  554.             send "&7&m/tct youko [true/false] … 妖狐を[追加/削除]します"
  555.             send "&a/tct tp <マップ名> &7… &9<マップ名>にテレポートします"
  556.             send "&6/tct start &7… &9ゲームを開始します"
  557.             send "&a/tct end &7… &9ゲームを強制終了します"
  558.             send "&e----------------------------------"
  559.         if arg-1 is "lobby":
  560.             if player's name is "{@owner}":
  561.                 set {マップ.lobby} to location of player
  562.                 send "{@logo} &eロビーを設定しました"
  563.             else:
  564.                 send "{@logo} &cオーナーコマンドです"
  565.         if arg-1 is "map":
  566.             if arg-2 is set:
  567.                 if player's name is "{@owner}":
  568.                     send "{@logo} &e%arg-2%のスポーンを設定しました"
  569.                     set {マップ.%arg-2%} to location of player
  570.                 else:
  571.                     send "{@logo} &cオーナーコマンドです"
  572.         if arg-1 is "tp":
  573.             if arg-2 is set:
  574.                 if {マップ.%arg-2%} is set:
  575.                     send "&6Teleporting..."
  576.                     teleport player to {マップ.%arg-2%}
  577.                 else:
  578.                     send "&cNo find!"
  579.         if arg-1 is "reset":
  580.             if name of player is "{@owner}":
  581.                 set {game.time} to 0
  582.                 set {game.time.y} to 0
  583.                 set {win.j} to 0
  584.                 set {lose.j} to 0
  585.                 set {win.m} to 0
  586.                 set {lose.m} to 0
  587.                 set {win.y} to 0
  588.                 set {lose.y} to 0
  589.                 send "{@logo} &6Reseted"
  590.             else:
  591.                 send "{@logo} &cオーナーコマンドです"
  592.         if arg-1 is "start":
  593.             arg-2 is not set
  594.             {game} is not set
  595.             loop {join::*}:
  596.                 loop-value is not online
  597.                 remove loop-value from {join::*}
  598.             clear {join::*}'s inventory
  599.             close {join::*}'s inventory
  600.             wait 5 ticks
  601.             loop number of {vote::*} times:
  602.                 add loop-number to {_list::*}
  603.             remove {last.number} from {_list::*}
  604.             loop 3 times:
  605.                 set {_n} to random number of {_list::*}
  606.                 remove {_n} from {_list::*}
  607.                 set {map%loop-number%.name} to {vote::%{_n}%::map}
  608.                 set {map%loop-number%.made} to {vote::%{_n}%::name}
  609.                 set {_map.%loop-number%} to {_n}
  610.             set {ma::%{map1.name}%} to 0
  611.             set {ma::%{map2.name}%} to 0
  612.             set {ma::%{map3.name}%} to 0
  613.             delete {r.n::*}
  614.             set {v} to 0
  615.             loop {join::*}:
  616.                 map(loop-value)
  617.                 add loop-value to {to::*}
  618.                 delete {a.%loop-value%}
  619.                 delete {attack.%loop-value%}
  620.                 delete {yk.%loop-value%}
  621.                 delete {buylist.%loop-value%::*}
  622.                 delete {dia.%loop-value%}
  623.                 set loop-value's max health to 10
  624.                 delete {last.attacker.%loop-value%}
  625.             broadcast "{@logo} &aマップを投票してください"
  626.             broadcast "{@logo} &a時間は&c30&a秒です"
  627.             loop 30 times:
  628.                 if number of {to::*} is 0:
  629.                     broadcast "{@logo} &6&l全員の投票が終了しました"
  630.                     stop loop
  631.                 command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a ~ ~ ~ 0.8 2 0"
  632.                 send action bar "&9《&a&l残り投票時間 &8: &6&l%31-loop-number% &b&l投票中 &e&l%number of {to::*}%人&9》" to all players
  633.                 wait 1 seconds
  634.                 if loop-number is 30:
  635.                     broadcast "{@logo} &6&l投票時間が終了しました"
  636.             send action bar "&6&l投票終了" to all players
  637.             close {to::*}'s inventory
  638.             delete {to::*}
  639.             wait 1 seconds
  640.             broadcast "{@logo} &a---------=Vote=------------"
  641.             loop 3 times:
  642.                 broadcast "{@logo} &b    &b%{vote::%{_map.%loop-number%}%::map}% &7- &e%{ma::%{map%loop-number%.name}%}%票"
  643.             broadcast "{@logo} &a----------------------------"
  644.             command "/execute @a ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 1 0.5"
  645.             wait 1 seconds
  646.             set {_high} to 0
  647.             loop {ma::*}:
  648.                 loop-value > {_high}
  649.                 set {_high} to loop-value
  650.                 set {highplayer} to loop-index
  651.             loop number of {vote::*} times:
  652.                 {highplayer} = {vote::%loop-number%::map}
  653.                 set {_top.map} to {vote::%loop-number%::map}
  654.                 set {last.number} to loop-number
  655.             broadcast "{@logo} &e今回のマップは&a「&b&l%{_top.map}%&a」&eです!"
  656.             delete {ma::*}
  657.             wait 1 seconds
  658.             set {game} to true
  659.             loop {join::*}:
  660.                 set loop-value's gamemode to survival
  661.                 clear loop-value's inventory
  662.             loop number of {vote::*} times:
  663.                 {highplayer} = {vote::%loop-number%::map}
  664.                 set {_top.made} to {vote::%loop-number%::name}
  665.             send all players title "&9《&7MAP - &e&l%{_top.map}%&9》" with subtitle "&7一&8【&aMade : %{_top.made}%&8】&7一" for 5 seconds
  666.             broadcast "{@logo} &9&l》&7MAP - &e&l%{_top.map}% &b│ &aMade &7- &d&l%{_top.made}%&9&l《"
  667.             broadcast "{@logo} &c試合が開始されました"
  668.             loop all players:
  669.                 delete {isi.%loop-player%}
  670.                 if {join::*} contains loop-player:
  671.                     set loop-player's tablist name to "&a%loop-player%"
  672.                     teleport {join::*} to {マップ.%{highplayer}%}
  673.                     if {highplayer} is "図書館" or "船":
  674.                         command "/effect @a night_vision 10000 255 true"
  675.                 else:
  676.                     if loop-player's gamemode is not creative:
  677.                         clear loop-player's inventory
  678.                         set loop-player's gamemode to spectator
  679.                         send "{@logo} &a参加していないため観戦になりました" to loop-player
  680.                         send "{@logo} &b/tlist &eで役職を確認できます" to loop-player
  681.                         send "{@logo} &b/back &eでロビーに戻ることができます" to loop-player
  682.                         teleport loop-player to {マップ.%{highplayer}%}
  683.                         set loop-player's tablist name to "&c%loop-player%"
  684.                     if {death::*} do not contain loop-player:
  685.                         add loop-player to {death::*}
  686.             execute console command "/clear @a minecraft:elytra"
  687.             execute console command "/clear @a minecraft:diamond_leggings"
  688.             set {bar} to "set" 
  689.             set {_time} to 30
  690.             create bossbar titled "&e試合開始まで : %{_time}% seconds" and id "time" for all players with progress 100 with colors blue
  691.             set bossbar "time" style to SEGMENTED_20
  692.             loop 30 times:
  693.                 if {game} is true:
  694.                     wait 1 seconds
  695.                     remove 1 from {_time}
  696.                     set {_value} to value of bossbar "time"
  697.                     set {pro} to value of bossbar "time"
  698.                     remove 100/30 from {_value}
  699.                     set bossbar "time" value to {_value}
  700.                     Set bossbar "time" title to "&e試合開始まで : %{_time}% seconds"
  701.                     set all players's level to {_time}
  702.                     if loop-number is 25 or 26 or 27 or 28 or 29 or 30:
  703.                         command "execute @a ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup master @a"
  704.                 else:
  705.                     stop loop
  706.             wait 1 seconds
  707.             remove bossbar "time"
  708.             delete {bar}
  709.             delete {pro}
  710.             broadcast "{@logo} &c準備時間の30秒が終了しました..."
  711.             add {join::*} to {m::*}
  712.             loop {m::*}:
  713.                 set slot 0 of loop-value to 1 wooden sword of sharpness 1 named "&b木の剣"
  714.                 set slot 1 of loop-value to 1 bow named "&7弓"
  715.                 command "/give %loop-value% minecraft:tipped_arrow 63"
  716.                 set slot 5 of loop-value to 1 wooden hoe named "&d[〇〇さんと一緒にいます!]"
  717.                 set slot 6 of loop-value to 1 stone hoe named "&d[〇〇さんは村人です!]"
  718.                 set slot 7 of loop-value to 1 iron hoe named "&d[〇〇さんは怪しいです!]"
  719.                 set slot 8 of loop-value to 1 diamond hoe named "&d[〇〇さんは人狼です!]"
  720.                 set {now.%loop-value%} to "join"
  721.                 set {co.%loop-value%} to "&c[村人]"
  722.                 add 1 to {jo::%loop-value%}
  723.                 set loop-value's hunger to 0.5
  724.                 set {buy.youko.%loop-value%} to 0
  725.                 delete {buylist.%loop-value%::*}
  726.                 set {coin::%loop-value%} to 0
  727.                 set {last.co.%loop-value%} to "m"
  728.                 delete {a.%loop-value%}
  729.             set {game.2} to true
  730.             set {_help::*} to {m::*}
  731.             loop {j.time} times:
  732.                 set {_p} to random player of {m::*}
  733.                 remove {_p} from {m::*}
  734.                 add {_p} to {j::*}
  735.                 send "{@logo} &4貴方は人狼です!" to {_p}
  736.                 set {coin::%{_p}%} to 1
  737.                 set {yk.%{_p}%} to "人狼"
  738.                 add 1 to {j.left}
  739.                 add 1 to {time.j.%{_p}%}
  740.             loop {k.time} times:
  741.                 set {_a} to random player of {m::*}
  742.                 remove {_a} from {m::*}
  743.                 add {_a} to {k::*}
  744.                 send "{@logo} &5貴方は狂人です!" to {_a}
  745.                 send {_a} title "&5&lあなたは狂人です" for 4 seconds
  746.                 add 1 to {k.left}
  747.                 set {yk.%{_a}%} to "狂人"
  748.                 add 1 to {time.k.%{_a}%}
  749.             loop {t.time} times:
  750.                 set {_b} to random player of {m::*}
  751.                 remove {_b} from {m::*}
  752.                 add {_b} to {t::*}
  753.                 send "{@logo} &b貴方は探偵です!" to {_b}
  754.                 send {_b} title "&b&lあなたは探偵です" for 4 seconds
  755.                 set {coin::%{_b}%} to 1
  756.                 add 1 to {mu}
  757.                 add 1 to {t.left}
  758.                 set {yk.%{_b}%} to "探偵"
  759.                 add 1 to {time.t.%{_b}%}
  760.             loop {i.time} times:
  761.                 set {_c} to random player of {m::*}
  762.                 remove {_c} from {m::*}
  763.                 add {_c} to {i::*}
  764.                 send "{@logo} &e貴方は医者です!" to {_c}
  765.                 send {_c} title "&e&lあなたは医者です" for 4 seconds
  766.                 give {_c} iron sword named "&e医者ソード"
  767.                 add 1 to {i.left}
  768.                 add 1 to {mu}
  769.                 set {yk.%{_c}%} to "医者"
  770.                 add 1 to {time.i.%{_c}%}
  771.             loop {y.time} times:
  772.                 set {_d} to random player of {m::*}
  773.                 remove {_d} from {m::*}
  774.                 add {_d} to {y::*}
  775.                 send "{@logo} &d貴方は妖狐です!" to {_d}
  776.                 send {_d} title "&d&lあなたは妖狐です" for 4 seconds
  777.                 set {yk.%{_d}%} to "妖狐"
  778.                 set {coin::%{_d}%} to 1
  779.                 add 1 to {y.left}
  780.                 add 1 to {time.y.%{_d}%}
  781.             loop {h.time} times:
  782.                 set {_h} to random player of {m::*}
  783.                 remove {_h} from {m::*}
  784.                 add {_h} to {h::*}
  785.                 send "{@logo} &6あなたは背徳者です!" to {_h}
  786.                 send "{@logo} &6妖狐は以下の方です。&6&l[%{y::*}%]" to {_h}
  787.                 send {_h} title "&6&lあなたは背徳者です" for 4 seconds
  788.                 set {yk.%{_h}%} to "背徳者"
  789.                 add 1 to {time.h.%{_d}%}
  790.                 add 1 to {h.left}
  791.             loop {m::*}:
  792.                 send "{@logo} &a貴方は村人です!" to loop-value
  793.                 set {yk.%loop-value%} to "村人"
  794.                 send loop-value title "&a&lあなたは村人です" for 4 seconds
  795.                 add 1 to {mu}
  796.                 add 1 to {m.left}
  797.                 add 1 to {time.m.%loop-value%}
  798.             send "{@logo} &c他の人狼は以下の方です。[%{j::*}%]" to {j::*}
  799.             send {j::*} title "&c&lあなたは人狼です" with subtitle "&8【&c%{j::*}%&8】" for 4 seconds
  800.             if {k::*} is set:
  801.                 send "{@logo} &c狂人は以下の方です。[%{k::*}%]" to {j::*}
  802.             send "{@logo} &b/jc <message> &eで人狼チャットができます" to {j::*}
  803.             send "{@logo} &a役職の確認は &b/help &aですることができます!" to {_help::*}
  804.             wait 2 ticks
  805.             loop all players:
  806.                 set loop-player's health to 20
  807.                 set loop-player's hunger to 0.5
  808.                 if {join::*} contains loop-player:
  809.                     if {paper.yk.%loop-value%} is not set:
  810.                         if {j::*} contains loop-player:
  811.                             set slot 4 of loop-player to pieces of paper named "&eあなたの役職 : &e&l%{yk.%loop-player%}%" with lore "&c他の人狼 [%{j::*}%]" and "&c他の狂人 : [%{k::*}%]"
  812.                         else:
  813.                             set slot 4 of loop-player to pieces of paper named "&eあなたの役職 : &e&l%{yk.%loop-player%}%"
  814.                     if {check.%loop-value%} is not set:
  815.                         give loop-value shear named "&eName Checker"
  816.             set {j.h::*} to {j::*}
  817.             set {k.h::*} to {k::*}
  818.             set {t.h::*} to {t::*}
  819.             set {i.h::*} to {i::*}
  820.             set {y.h::*} to {y::*}
  821.             set {m.h::*} to {m::*}
  822.             set {h.h::*} to {h::*}
  823.             add {k::*} to {m.陣営::*}
  824.             add {t::*} to {m.陣営::*}
  825.             add {i::*} to {m.陣営::*}
  826.             add {y::*} to {m.陣営::*}
  827.             add {m::*} to {m.陣営::*}
  828.             add {h::*} to {m.陣営::*}
  829.             set {bar.2} to "set"
  830.             set {time} to 300
  831.             set {time.y} to 150
  832.             broadcast "{@logo} &c探偵の数は%{t.left}%人、人狼の数は%{j.left}%人、狂人の数は%{k.left}%人、医者の数は%{i.left}%人、妖狐の数は%{y.left}%人、背徳者の数は%{h.left}%人、村人の数は%{m.left}%人です!"
  833.             command "/say コインが配布されたなら/shop または /a でアイテム買えます"
  834.             set all players's level to {time}
  835.             create bossbar titled "&9&l《 &7残り時間 &7: &d&l%{time}% &7seconds &9&l》" and id "time" for all players with progress 100 with colors purple
  836.             wait 2 ticks
  837.             add 1 to {game.time}
  838.             if {y.time} is not 0:
  839.                 add 1 to {game.time.y}
  840.             score()
  841.             while {game.2} is true:
  842.                 wait 1 seconds
  843.                 if {y.time} is not 0:
  844.                     if {youko.heru} is not set:
  845.                         remove 1 from {time.y}
  846.                         send action bar "&9&l《&a妖狐だとばれるまで &d&l%{time.y}% &a秒 &9&l》" to {y::*}
  847.                         if {time.y} is 90 or 60 or 30:
  848.                             send "{@logo} &c誰かを殺さないとあと%{time.y}%秒後に妖狐だと公表されます!" to {y::*}
  849.                         if {time.y} is 0:
  850.                             broadcast "{@logo} &d&l妖狐は%{y::*}%です!"
  851.                             set {youko.heru} to "set"      
  852.                 send action bar "&d&l妖狐 : &d&l[%{y::*}%]" to {h::*}
  853.                 remove 1 from {time}
  854.                 set all players's level to {time}
  855.                 Set bossbar "time" title to "&9&l《 &7残り時間 &7: &d&l%{time}% &7Seconds &9&l》"
  856.                 if {time} is 0:
  857.                     set {win.color} to "&a"
  858.                     send all players title "&a村人側が勝利しました" with subtitle "&7時間制限による村人の勝利" for 5 seconds
  859.                     broadcast "{@logo} &a&l制限時間が0になりました"
  860.                     command "/execute @a ~ ~ ~ playsound minecraft:entity.villager.yes ambient @a ~ ~ ~ 3"
  861.                     winm()
  862.                     endm()
  863.                 loop {join::*}:
  864.                     if {death::*} do not contain loop-value:
  865.                         set loop-value's hunger to 0.5
  866.                 loop {death::*}:
  867.                     add 1 to {death.time::%loop-value%}
  868.                 add 1 to {c.t}
  869.                 if {c.t} is 90:
  870.                     command "/say コインが配布されました。/shop または /a でアイテム買えます"
  871.                     set {c.t} to 0
  872.                     loop all players:
  873.                         add 1 to {coin::%loop-player%}
  874.                     score()
  875.                 if {zi} is "hatu":
  876.                     loop all players in radius 4 of {zi.lc}:
  877.                         {j::*} do not contain loop-player
  878.                         {death::*} do not contain loop-player
  879.                         set {_zi} to loop-player
  880.                         if {_zi} is set:
  881.                             spawn tnt at {zi.lc}
  882.                             set {_a} to last spawned tnt
  883.                             add "{Fuse:0,ExplosionRadius:5}" to nbt of {_a}
  884.                             send "{@logo} &a地雷発動!" to {j::*}
  885.                             set block at {zi.lc} to air
  886.                             delete {zi}
  887.                             delete {zi.lc}
  888.                 set {_list} to "%{j.h::*}%"
  889.                 set {_list2} to "%{k.h::*}%"
  890.                 replace all "," with " &6&l,&c&l" in {_list} or {_list}
  891.                 replace all "and" with "&6&l,&c&l" in {_list} or {_list2}
  892.                 send action bar "&c人狼 : &c&l[%{_list}%] &c&l| &c狂人 : &c&l[%{_list2}%]" to {j::*}
  893.                 loop {j::*}:
  894.                     loop-value has compass
  895.                     if {com} is not set:
  896.                         add {m::*} to {c.player::*}
  897.                         add {i::*} to {c.player::*}
  898.                         add {t::*} to {c.player::*}
  899.                         add {y::*} to {c.player::*}
  900.                         add {h::*} to {c.player::*}
  901.                         set {com} to random player of {c.player::*}
  902.                     set the loop-value's compass target to location of {com}
  903.                     if loop-value's tool is compass:
  904.                         set name of loop-value's tool to "&a&l%{com}%&fをターゲットにしています…"
  905.                     delete {c.player::*}
  906.             remove bossbar "time"
  907.             delete {bar.2}
  908.         if arg-1 is "end":
  909.             broadcast "{@logo} &cゲームが停止されました"
  910.             end()
  911. command /jc [<text>]:
  912.     trigger:
  913.         if {game.2} is true:
  914.             if {j::*} contains player:
  915.                 if arg-1 is set:
  916.                     message "&4[人狼チャット]&8-&e%player%&8 >> &a%colored arg-1%" to {j::*}
  917.                     message "&4[人狼チャット]&8-&e%player%&8 >> &a%colored arg-1%" to {death::*}
  918.                 else:
  919.                     send "{@logo} &cメッセージを入力してください"
  920.             else:
  921.                 send "{@logo} &c人狼だけが使用可能です"
  922.         else:
  923.             send "{@logo} &cゲームは始まっていません"
  924. command /co [<text>]:
  925.     trigger:
  926.         if {now.%player%} is not "join":
  927.             send "{@logo} &c使えない役職です"
  928.         else:
  929.             if {co.ct.%player%} is not set:
  930.                 if arg-1 is "j" or "k" or "i" or "t" or "y" or "m" or "h":
  931.                     if {%arg%.time} is not 0:
  932.                         set {set.co.%player%} to arg
  933.                         replace all "j" with "&4人狼" in {set.co.%player%}
  934.                         replace all "k" with "&5狂人" in {set.co.%player%}
  935.                         replace all "i" with "&e医者" in {set.co.%player%}
  936.                         replace all "t" with "&b探偵" in {set.co.%player%}
  937.                         replace all "m" with "&c村人" in {set.co.%player%}
  938.                         replace all "y" with "&d妖狐" in {set.co.%player%}
  939.                         replace all "h" with "&6背徳者" in {set.co.%player%}
  940.                         if {last.co.%player%} is not arg:
  941.                             set {co.ct.%player%} to "set"
  942.                             set {last.co.%player%} to arg
  943.                             broadcast "{@logo} &c%player%が%{set.co.%player%}%CO&cをしました"
  944.                             if arg-1 is "j":
  945.                                 set {co.%player%} to "&4[人狼]"
  946.                             else if arg-1 is "k":
  947.                                 set {co.%player%} to "&5[狂人]"
  948.                             else if arg-1 is "i":
  949.                                 set {co.%player%} to "&e[医者]"
  950.                             else if arg-1 is "t":
  951.                                 set {co.%player%} to "&b[探偵]"
  952.                             else if arg-1 is "y":
  953.                                 set {co.%player%} to "&d[妖狐]"
  954.                             else if arg-1 is "m":
  955.                                 set {co.%player%} to "&c[村人]"
  956.                             else if arg-1 is "h":
  957.                                 set {co.%player%} to "&6[背徳者]"
  958.                             wait 5 seconds
  959.                             delete {co.ct.%player%}
  960.                         else:
  961.                             send "{@logo} &cすでにその役職のCOをしています"
  962.                     else:
  963.                         send "{@logo} &c今回の試合にその役職はいません"
  964.                 else:
  965.                     send "{@logo} &cCO可能なのは[j/k/t/i/y/h/m]のみです"
  966.                     send "{@logo} &cj=人狼¦k=狂人│t=探偵│i=医者│y=妖狐│h=背徳者│m=村人"
  967.             else:
  968.                 send "{@logo} &cクールダウン中です"
  969. command /shop:
  970.     aliases: a
  971.     trigger:
  972.         if {now.%player%} is not "join":
  973.             send "{@logo} &c使えない役職です"
  974.         else:
  975.             send "{@logo} &bコインの数は%{coin::%player%}%枚"
  976.             if {j::*} contains player:
  977.                 open chest with 2 rows named "&c人狼ショップ" to player
  978.             else if {t::*} contains player:
  979.                 open chest with 2 rows named "&b探偵ショップ" to player
  980.             else if {i::*} contains player:
  981.                 open chest with 2 rows named "&e医者ショップ" to player
  982.             else if {y::*} contains player:
  983.                 open chest with 2 rows named "&d妖狐ショップ" to player
  984.             else:
  985.                 open chest with 2 rows named "&6ショップ" to player
  986.             set slot 0 of player's current inventory to stone sword of sharpness 1 named "&a石剣"
  987.             set slot 1 of player's current inventory to bow of power 1 named "&a弓"
  988.             set slot 2 of player's current inventory to speed potion named "&a俊敏ポーション"
  989.             set slot 3 of player's current inventory to stick named "&a棒" with lore "&7人狼の死体をクリックすると、誰が人狼を殺したかわかる"
  990.             set slot 4 of player's current inventory to empty bottle named "&a空き瓶" with lore "&7殺した相手に一定時間鈍足効果をつける"
  991.             set slot 5 of player's current inventory to milk named "&a牛乳" with lore "&7ウィザー状態等の状態異常をその場で解除できる"
  992.             if {t::*} contains player:
  993.                 set slot 6 of player's current inventory to iron sword named "&b鉄剣" with lore "&7人狼だったら一発で倒すことが出来る" and "&7村人チームならば何も起こらずに消える。" and "&bDETECTIVE ITEM" and "&a何度でも購入可能"
  994.                 set slot 7 of player's current inventory to redstone ore named "&bレッドストーンブロック" with lore "&7設置し、右クリックすると体力を満タンまで回復する" and "&bDETECTIVE ITEM"
  995.                 set slot 8 of player's current inventory to wheat seed named "&bタネ" with lore "&7周囲5マスに人狼がいるか確認できる" and "&bDETECTIVE ITEM"
  996.                 set slot 9 of player's current inventory to sponge named "&bスポンジ" with lore "&7インベントリに入れておくだけで爆発ダメージを1度だけ無効化できる" and "&bDETECTIVE ITEM"
  997.                 set slot 10 of player's current inventory to leather chestpiece named "&b探偵の服" with lore "&7防具になる他、自分が真探偵であるという証明ができる。" and "&7ただし買うことが出来るのは試合が始まってから3分後。" and "&bDETECTIVE ITEM"
  998.             else if {y::*} contains player:
  999.                 set slot 6 of player's current inventory to iron sword named "&d鉄剣" with lore "&7相手がどんな役職であろうと一撃で殺せる" and "&dYOUKO ITEM" and "&a2回購入可能"
  1000.                 set slot 7 of player's current inventory to diamond named "&dダイヤモンド" with lore "&7ダイアモンドを持った状態で右クリックすると位置を記憶する。" and "&7好きな場所でもう一度右クリックすると記憶した場所にテレポートできる" and "&dYOUKO ITEM"
  1001.                 set slot 8 of player's current inventory to sponge named "&dチーズ" with lore "&7食べるとハートが15個になり、更に回復します。" and "&dYOUKO ITEM"
  1002.             else if {i::*} contains player:
  1003.                 set slot 6 of player's current inventory to egg named "&eHeal bomb" with lore "&7着弾地点付近にいるプレイヤーを回復する" with lore "&eDOCTOR ITEM" and "&a何度でも購入可能"
  1004.             else if {j::*} contains player:
  1005.                 set slot 6 of player's current inventory to tnt block named "&cTNT" with lore "&7周りを巻き込み自爆する" and "&cWOLF ITEM"
  1006.                 set slot 7 of player's current inventory to snowball named "&c雪玉" with lore "&7着弾地点に爆発を起こす" and "&cWOLF ITEM"
  1007.                 set slot 8 of player's current inventory to diamond named "&cダイヤモンド" with lore "&7ダイアモンドを持った状態で右クリックすると位置を記憶する。" and "&7好きな場所でもう一度右クリックすると記憶した場所にテレポートできる" and "&cWOLF ITEM"
  1008.                 set slot 9 of player's current inventory to sponge named "&cチーズ" with lore "&7食べるとハートが15個になり、更に回復します。" and "&cWOLF ITEM"
  1009.                 set slot 10 of player's current inventory to iron sword named "&c鉄剣" with lore "&7誰でも一発で倒すことができる。" and "&cただし人狼と妖狐には効果がない。" and "&cWOLF ITEM" and "&a何度でも購入可能"
  1010.                 set slot 11 of player's current inventory to redstone ore named "&cレッドストーンブロック" with lore "&7右クリックすると死ぬまでウィザーの効果が" and "&7ついてしまう。人狼には効果がない。" and "&cWOLF ITEM"
  1011.                 set slot 12 of player's current inventory to golde clock named "&c時計" with lore "&7時計を持った状態で右クリックすると" and "&710秒間透明化&その場にダミーの死体を出現させる" and "&cWOLF ITEM"
  1012.                 set slot 13 of player's current inventory to wheat seed named "&cタネ" with lore "&7周囲3マスにいるプレイヤーにハート5個分のダメージを瞬時に与える" and "&cWOLF ITEM"
  1013.                 set slot 14 of player's current inventory to west facing ender dragon skull named "&c地雷" with lore "&7設置して数秒後に可動し始める地雷を設置。" and "&cWOLF ITEM"
  1014.                 set slot 15 of player's current inventory to compass named "&cコンパス" with lore "&7残った生存者の居場所がわかる" and "&cWOLF ITEM"
  1015.                 set slot 16 of player's current inventory to downward torch named "&c松明" with lore "&7死体をクリックすると焼却処分できる" and "&cWOLF ITEM"
  1016.  
  1017. on inventory click:
  1018.     inventory name of player's current inventory is "&c人狼ショップ" or "&b探偵ショップ" or "&6ショップ" or "&e医者ショップ" or "&d妖狐ショップ"
  1019.     if clicked slot is between 0 and 17:
  1020.         "%event-inventory%" is not "inventory of %player%":
  1021.         clicked item is not air
  1022.         cancel event
  1023.         wait a tick
  1024.         if {t::*} contains player:
  1025.             clicked slot is 10
  1026.             if {time} > 180:
  1027.                 send "{@logo} &cそのアイテムは180秒以下になると購入可能です"
  1028.                 close player's inventory
  1029.                 command "execute %player% ~ ~ ~ /playsound minecraft:item.chorus_fruit.teleport master %player% ~ ~ ~ 1 0.5"
  1030.                 stop
  1031.         if {buylist.%player%::*} do not contain clicked item's name:
  1032.             if {coin::%player%} > 0:
  1033.                 give player clicked item
  1034.                 command "execute %player% ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup master %player%"
  1035.                 remove 1 from {coin::%player%}
  1036.                 close player's inventory
  1037.                 score()
  1038.                 if {j::*} contains player:
  1039.                     clicked slot is not 10
  1040.                     add clicked item's name to {buylist.%player%::*}
  1041.                 else if {t::*} contains player:
  1042.                     clicked slot is not 6
  1043.                     add clicked item's name to {buylist.%player%::*}
  1044.                 else if {i::*} contains player:
  1045.                     clicked slot is not 6
  1046.                     add clicked item's name to {buylist.%player%::*}
  1047.                 else if {y::*} contains player:
  1048.                     clicked slot is 6
  1049.                     if {buy.youko.%player%} < 1:
  1050.                         add 1 to {buy.youko.%player%}
  1051.                     else:
  1052.                         add clicked item's name to {buylist.%player%::*}
  1053.                 else:
  1054.                     add clicked item's name to {buylist.%player%::*}
  1055.             else:
  1056.                 send "{@logo} &cコインが足りません"
  1057.                 command "/execute %player% ~ ~ ~ /playsound minecraft:entity.villager.no master %player% ~ ~ ~ 1"
  1058.                 close player's inventory
  1059.         else:
  1060.             send "{@logo} &cそのアイテムは既に購入しました"
  1061.             command "execute %player% ~ ~ ~ /playsound minecraft:item.chorus_fruit.teleport master %player% ~ ~ ~ 1 0.5"
  1062. #=====================================================SHOPITEM================================================
  1063. On explode:
  1064.     cancel event
  1065. on damage of player:
  1066.     {game.2} is set
  1067.     attacker's tool's name is "&b鉄剣"
  1068.     if projectile is not arrow:
  1069.         command "/execute %attacker% ~ ~ ~ /playsound minecraft:entity.item.break master %attacker% ~ ~ ~ 5 1"
  1070.         if {j::*} contains victim:
  1071.             increase the damage by 30
  1072.             set attacker's tool to air
  1073.         else:  
  1074.             cancel event
  1075.             set attacker's tool to air
  1076. on damage of player:
  1077.     {game.2} is set
  1078.     attacker's tool's name is "&c鉄剣"
  1079.     projectile is not arrow
  1080.     {j::*} contains attacker
  1081.     {j::*} do not contain victim
  1082.     command "/execute %attacker% ~ ~ ~ /playsound minecraft:entity.item.break master %attacker% ~ ~ ~ 5 1"
  1083.     if {y::*} do not contain victim:
  1084.         increase the damage by 30
  1085.         set attacker's tool to air
  1086.     else:
  1087.         cancel event
  1088.         set attacker's tool to air
  1089. on damage of player:
  1090.     {game.2} is set
  1091.     attacker's tool's name is "&d鉄剣"
  1092.     projectile is not arrow
  1093.     {y::*} contains attacker
  1094.     command "/execute %attacker% ~ ~ ~ /playsound minecraft:entity.item.break master %attacker% ~ ~ ~ 5 1"
  1095.     set attacker's tool to air
  1096.     increase the damage by 30
  1097. on damage of player:
  1098.     attacker's tool's name is "&e医者ソード"
  1099.     {i::*} contains attacker
  1100.     projectile is not set
  1101.     cancel event
  1102.     command "/effect %victim% minecraft:regeneration 5 1"
  1103.  
  1104. on place of redstone ore:
  1105.     {join::*} contains player
  1106.     {game} is true
  1107.     if {t::*} contains player:
  1108.         add location of event-block to {t.heal::*}
  1109.     else if {j::*} contains player:
  1110.         add location of event-block to {j.heal::*}
  1111.     else:
  1112.         cancel event
  1113.         send "{@logo} &c設置できない役職です" to player
  1114. on right click:
  1115.     {join::*} contains player
  1116.     if {t.heal::*} contains location of event-block:
  1117.         set block at location of event-block to redstone ore
  1118.         if {health.cooldown.%player%} is not set:
  1119.             set player's health to 20
  1120.             set {health.cooldown.%player%} to 30
  1121.             loop 30 times:
  1122.                 wait 1 seconds
  1123.                 remove 1 from {health.cooldown.%player%}
  1124.             delete {health.cooldown.%player%}
  1125.         else:
  1126.             send "{@logo} &cクールダウン中です &8<&e使用可能まで &7: &e%{health.cooldown.%player%}%seconds&8>" to player
  1127.     else if {j.heal::*} contains location of event-block:
  1128.         set block at location of event-block to redstone ore
  1129.         {j::*} do not contain player
  1130.         command "/effect %player% minecraft:wither 10000 0"
  1131. on right click with wheat seed:
  1132.     if {t::*} contains player:
  1133.         set player's tool to air
  1134.         loop all players in radius 5 of player:
  1135.             {j::*} contains loop-player
  1136.             player's gamemode is not spectator
  1137.             add 1 to {_seed.j}
  1138.         if {_seed.j} is set:
  1139.             send "{@logo} &c&l周囲に怪しいプレイヤーが%{_seed.j}%人います!!"
  1140.         else:
  1141.             send "{@logo} &a周囲に怪しいプレイヤーはいません"
  1142.     else if {j::*} contains player:
  1143.         set player's tool to air
  1144.         loop all players in radius 3 of player:
  1145.             {j::*} do not contain loop-player
  1146.             {death::*} do not contain loop-player
  1147.             remove 5 from loop-player's health
  1148. on damage of player:
  1149.     if damage was caused by ENTITY EXPLOSION:
  1150.         if victim has 1 sponge:
  1151.             {t::*} contains victim
  1152.             cancel event
  1153.             remove 1 sponge from the victim
  1154.         else:
  1155.             increase the damage by 4
  1156. on right click holding a tnt:
  1157.     {j::*} contains player
  1158.     player's tool's name is "&cTNT"
  1159.     set player's helmet to tnt
  1160.     command "/execute %player% ~ ~ ~ /playsound minecraft:entity.creeper.primed master %player% ~ ~ ~ 5 0"
  1161.     wait 2 seconds
  1162.     create a fake explosion at the player
  1163.     spawn creeper at the player
  1164.     set {_a} to last spawned creeper
  1165.     add "{Fuse:0,ExplosionRadius:5}" to nbt of {_a}
  1166. on projectile hit:
  1167.     if {j::*} contains shooter:
  1168.         projectile is snowball
  1169.         spawn tnt at the projectile
  1170.         set {_a} to last spawned tnt
  1171.         add "{powered:1,Fuse:0}" to nbt of {_a}
  1172.         create a fake explosion at the event-projectile
  1173.     else if {i::*} contains shooter:
  1174.         projectile is egg
  1175.         set {_lc} to location of event-projectile
  1176.         command "/execute %shooter% %x-coord of {_lc}% %y-coord of {_lc}% %z-coord of {_lc}% /particle totem ~ ~1 ~ 2 1.5 2 0.2 300 force"
  1177.         loop all players in radius 3 of event-projectile:
  1178.             command "/execute %loop-player% ~ ~ ~ /playsound minecraft:entity.player.levelup ambient %loop-player% ~ ~ ~ 3 2"
  1179.             add 3 to loop-player's health
  1180. on right click holding diamond:
  1181.     {j::*} contains player
  1182.     if {dia.%player%} is not set:
  1183.         set {dia.%player%} to location of player
  1184.         send "{@logo} &aテレポート先を設定しました"
  1185.         send "{@logo} &aもう1度クリックするとこの場所にテレポートすることができます"
  1186.     else:
  1187.         teleport player to {dia.%player%}
  1188.         set player's tool to air
  1189.         wait 5 ticks
  1190.         command "/playsound minecraft:item.chorus_fruit.teleport master @p ~ ~ ~ 1 2"
  1191.         delete {dia.%player%}
  1192. on right click holding diamond:
  1193.     {y::*} contains player
  1194.     if {dia.%player%} is not set:
  1195.         set {dia.%player%} to location of player
  1196.         send "{@logo} &aテレポート先を設定しました"
  1197.         send "{@logo} &aもう1度クリックするとこの場所にテレポートすることができます"
  1198.     else:
  1199.         teleport player to {dia.%player%}
  1200.         set player's tool to air
  1201.         wait 5 ticks
  1202.         command "/playsound minecraft:item.chorus_fruit.teleport master @p ~ ~ ~ 1 2"
  1203.         delete {dia.%player%}
  1204. on right click holding sponge:
  1205.     {j::*} contains player
  1206.     set player's max health to 15
  1207.     set player's health to 30
  1208.     command "execute %player% ~ ~ ~ /playsound minecraft:entity.generic.eat master %player% ~ ~ ~ 5 1"
  1209.     set player's tool to air
  1210. on right click holding sponge:
  1211.     {y::*} contains player
  1212.     set player's max health to 15
  1213.     set player's health to 30
  1214.     command "execute %player% ~ ~ ~ /playsound minecraft:entity.generic.eat master %player% ~ ~ ~ 5 1"
  1215.     set player's tool to air
  1216. on right click holding a golde clock:
  1217.     {j::*} contains player
  1218.     set player's tool to air
  1219.     send "{@logo} &aダミーを設置しました"
  1220.     send "{@logo} &a10秒間&b透明&aになります"
  1221.     set {_reset.block.1.%player%} to location of block under the player
  1222.     set {_reset.block.2.%player%} to location of player
  1223.     set {_dummy.block.%player%} to type of block under the player
  1224.     set {_reset.block.3.%player%} to type of block at player's location
  1225.     set block at location of {_reset.block.1.%player%} to bedrock
  1226.     set block at location of player to floor sign
  1227.     set {_floor} to block at location of player
  1228.     set line 1 of {_floor} to "%player%"
  1229.     set line 2 of {_floor} to "死体"
  1230.     command "/effect %player% minecraft:invisibility 10 255 true"
  1231.     wait 10 seconds
  1232.     send "{@logo} &aダミーと透明が消えました"
  1233.     set block at {_reset.block.1.%player%} to {_dummy.block.%player%}
  1234.     set block at {_reset.block.2.%player%} to {_reset.block.3.%player%}
  1235. on place:
  1236.     {game.2} is set
  1237.     {j::*} contains player
  1238.     set {_item} to event-block
  1239.     "SKULL" = "%{_item}%"
  1240.     if {zi} is set:
  1241.         send "{@logo} &cすでにほかの人狼が設置しています"
  1242.         cancel event
  1243.     else:
  1244.         set {zi} to "place"
  1245.         set {zi.lc} to location of event-block
  1246.         send "{@logo} &a地雷を設置しました"
  1247.         loop 5 times:
  1248.             wait 1 seconds
  1249.             if {zi} is set:
  1250.                 send "{@logo} &a地雷が動き始めるまで … %6-loop-number% Seconds"
  1251.             else:
  1252.                 stop loop
  1253.                 send "{@logo} &c地雷が何者かによって解除されました"
  1254.                 delete {zi}
  1255.                 delete {zi.lc}
  1256.         send "{@logo} &a地雷が動き始めました!"
  1257.         set {zi} to "hatu"
  1258. on projectile hit:
  1259.     projectile is arrow
  1260.     set {_item} to block at location of event-projectile
  1261.     "SKULL" = "%{_item}%"
  1262.     block at location of projectile is {_item}
  1263.     if {zi} is set:
  1264.         delete event-projectile
  1265.         set block at {zi.lc} to air
  1266.         delete {zi.lc}
  1267.         delete {zi}
  1268.         send "{@logo} &a地雷の解除に成功しました!" to shooter
  1269.         send "{@logo} &c地雷が何者かによって解除されました" to {j::*}
  1270. #=============================================================================================================
  1271. command /nojoin:
  1272.     trigger:
  1273.         if {game} is not set:
  1274.             if {join::*} contains player:
  1275.                 send "{@logo} &c不参加になりました"
  1276.                 remove player from {join::*}
  1277.                 set {auto.%player%} to false
  1278.                 set player's tablist name to "&5[&6Lv.%{level::%uuid of player%}%&5]&c%player%"
  1279.             else if {join::*} do not contain player:
  1280.                 send "{@logo} &b参加しました"
  1281.                 add player to {join::*}
  1282.                 set {auto.%player%} to true
  1283.                 set player's tablist name to "&5[&6Lv.%{level::%uuid of player%}%&5]&a%player%"
  1284.             lobbyitem(player)
  1285.         else:
  1286.             send "{@logo} &c試合が終わってから実行してください"
  1287.             send "{@logo} &cどうしても抜けなければいけない場合は、運営に言ってください"
  1288. on damage of player:   
  1289.     if {game.2} is not set:
  1290.         if attacker's gamemode is not creative:
  1291.             cancel event
  1292.     else:
  1293.         if attacker's tool's name is "&eName Checker":
  1294.             cancel event
  1295.             send "{@logo} &bName : &e&l%victim%" to attacker
  1296.         attacker is not victim
  1297.         if {j::*} contains attacker:
  1298.             if {j::*} contains victim:
  1299.                 cancel event
  1300.     if {death::*} contains victim:
  1301.         if attacker's gamemode is not creative:
  1302.             cancel event
  1303.     if attacker's tool is wooden hoe or stone hoe or iron hoe or diamond hoe:
  1304.         if attacker's tool is wooden hoe:
  1305.             cancel event
  1306.             {ki.%attacker%} is not set
  1307.             set {ki.%attacker%} to true
  1308.             broadcast "%{co.%attacker%}%%attacker%:&e%victim%さんと一緒にいます!"
  1309.             wait 5 seconds
  1310.             delete {ki.%attacker%}
  1311.         else if attacker's tool is stone hoe:
  1312.             cancel event
  1313.             {isi.%attacker%} is not set
  1314.             set {isi.%attacker%} to true
  1315.             broadcast "%{co.%attacker%}%%attacker%:&a%victim%さんは村人です!"
  1316.             wait 5 seconds
  1317.             delete {isi.%attacker%}
  1318.         else if attacker's tool is iron hoe:
  1319.             cancel event
  1320.             {tetu.%attacker%} is not set
  1321.             set {tetu.%attacker%} to true
  1322.             broadcast "%{co.%attacker%}%%attacker%:&5%victim%さんは怪しいです!"
  1323.             wait 5 seconds
  1324.             delete {tetu.%attacker%}
  1325.         else if attacker's tool is diamond hoe:
  1326.             cancel event
  1327.             {dia.%attacker%} is not set
  1328.             set {dia.%attacker%} to true
  1329.             broadcast "%{co.%attacker%}%%attacker%:&4%victim%さんは人狼です!"
  1330.             wait 5 seconds
  1331.             delete {dia.%attacker%}
  1332. on damage of player:
  1333.     if {game.2} is true:
  1334.         if attacker is a player:
  1335.             attacker is not victim
  1336.             set {last.attacker.%victim%} to attacker
  1337.             wait 6 seconds
  1338.             delete {last.attacker.%victim%}
  1339. on quit:
  1340.     if {game.2} is true:
  1341.         {death::*} do not contain player
  1342.         player's gamemode is survival
  1343.         set {_floor} to block at location of player
  1344.         set {_block} to block under the player
  1345.         set {torch::%player%} to type of {_block}
  1346.         set {death.reset::%location of block under the player%} to type of {_block}
  1347.         set {death.reset::%location of player%} to type of block at player's location
  1348.         set block at location of {_block} to bedrock
  1349.         set block at location of player to floor sign
  1350.         set line 1 of {_floor} to "%player%"
  1351.         set line 2 of {_floor} to "死体"
  1352.         add location of {_floor} to {death.floor::*}
  1353.         set {attack.%player%} to "QUIT"
  1354.         add player to {death::*}
  1355.         if {y::*} contains player:
  1356.             loop {h::*}:
  1357.                 kill loop-value
  1358.                 send "{@logo} &e妖狐が死んでしまったためあなたは自殺を選択した…" to loop-value
  1359. on death of player:
  1360.     if {game.2} is true:
  1361.         if "%victim%" is "%{com}%":
  1362.             delete {com}
  1363.         if {y::*} contains {last.attacker.%victim%}:
  1364.             add 6 to {last.attacker.%victim%}'s health
  1365.             send "{@logo} &d&l妖狐スキル &7: &a人を殺したためHPが+6されます" to {last.attacker.%victim%}
  1366.             if {youko.heru} is not set:
  1367.                 set {time.y} to 150
  1368.         else if {y::*} contains victim:
  1369.             set {youko.heru} to "set"
  1370.         {join::*} contains victim
  1371.         if {last.attacker.%victim%} is set:
  1372.             set {a.%victim%} to {last.attacker.%victim%}
  1373.             if victim has empty bottle named "&a空き瓶":
  1374.                 remove 1 empty bottle from the victim
  1375.                 command "/effect %{last.attacker.%victim%}% minecraft:slowness 60 1"
  1376.         clear victim's inventory
  1377.         set {_floor} to block at location of victim
  1378.         set {_block} to block under the victim
  1379.         set {torch::%victim%} to type of {_block}
  1380.         set {death.reset::%location of block under the victim%} to type of {_block}
  1381.         set {death.reset::%location of victim%} to type of block at victim's location
  1382.         set block at location of {_block} to bedrock
  1383.         set block at location of victim to floor sign
  1384.         set line 1 of {_floor} to "%victim%"
  1385.         set line 2 of {_floor} to "死体"
  1386.         add location of {_floor} to {death.floor::*}
  1387.         force victim to respawn
  1388.         death(victim)
  1389.         score()
  1390.         if number of {j::*} is 0:
  1391.             if number of {y::*} is greater or equal to 1: #妖狐勝利
  1392.                 set {win.color} to "&d"
  1393.                 send all players title "&6妖狐側が勝利しました" with subtitle "&7人狼側全滅時に生き残っていた妖狐の勝利" for 5 seconds
  1394.                 broadcast "{@logo}&6&l人狼は全滅し、妖狐が生き残りました"
  1395.                 command "/execute @a ~ ~ ~ playsound minecraft:entity.wither.spawn ambient @a ~ ~ ~ 1.5 1.8"
  1396.                 winy()
  1397.             else:
  1398.                 set {win.color} to "&a"
  1399.                 send all players title "&a村人側が勝利しました" with subtitle "&7人狼側全滅による村人側の勝利" for 5 seconds
  1400.                 broadcast "{@logo} &a&l人狼は全滅しました。"
  1401.                 command "/execute @a ~ ~ ~ playsound minecraft:entity.villager.yes ambient @a ~ ~ ~ 3"
  1402.                 winm()
  1403.             endm()
  1404.         else if {mu} is 0:
  1405.             if number of {y::*} is greater or equal to 1:
  1406.                 set {win.color} to "&d"
  1407.                 send all players title "&6妖狐側が勝利しました" with subtitle "&7村人側全滅時に生き残っていた妖狐の勝利" for 5 seconds
  1408.                 broadcast "{@logo} &6&l村人は全滅し、妖狐が生き残りました"
  1409.                 command "/execute @a ~ ~ ~ playsound minecraft:entity.wither.spawn ambient @a ~ ~ ~ 1.5 1.8"
  1410.                 winy()
  1411.             else:
  1412.                 set {win.color} to "&c"
  1413.                 send all players title "&c人狼側が勝利しました" with subtitle "&7村人側全滅による人狼側の勝利" for 5 seconds
  1414.                 broadcast "{@logo} &c&l村人は全滅しました。"
  1415.                 command "/execute @a ~ ~ ~ /playsound minecraft:entity.wolf.howl master @a ~ ~ ~ 0.5 1"
  1416.                 winj()
  1417.             endm()
  1418.         else:
  1419.             if {y.h::*} contains victim:
  1420.                 loop {h::*}:
  1421.                     kill loop-value
  1422.                     send "{@logo} &c妖狐が死んでしまったためあなたは自殺を選択した…" to loop-value
  1423.             set victim's gamemode to spectator
  1424.             clear victim's inventory
  1425.             if {death::*} do not contain victim:
  1426.                 add victim to {death::*}
  1427.             if {last.attacker.%victim%} is set:
  1428.                 teleport victim to {last.attacker.%victim%}
  1429.             else:
  1430.                 teleport victim to {マップ.%{highplayer}%}
  1431.             set victim's tablist name to "&c%victim%"
  1432.             send "{@logo} &a死んでしまったため次の試合まで観戦です" to victim
  1433.             send "&a[観戦] &6%victim%&aが観戦チャットに参加しました" to {death::*}
  1434.             set {now.%victim%} to "death"
  1435.             add 30 to {time}
  1436.             if damage was caused by PROJECTILE:
  1437.                 set {attack.%victim%} to "BOW"
  1438.             else if attacker is a player:
  1439.                 if attacker's tool is wooden sword:
  1440.                     set {attack.%victim%} to "WOODEN_SWORD"
  1441.                 else if attacker's tool is stone sword:
  1442.                     set {attack.%victim%} to "STONE_SWORD"
  1443.                 else if attacker's tool is iron sword:
  1444.                     set {attack.%victim%} to "IRON_SWORD"
  1445.             else if damage was caused by LAVA:
  1446.                 set {attack.%victim%} to "LAVA"
  1447.             else if damage was caused by WITHER:
  1448.                 set {attack.%victim%} to "MAGIC"
  1449.             else if damage was caused by FALL:
  1450.                 set {attack.%victim%} to "FALL"
  1451.             else if damage was caused by ENTITY EXPLOSION:
  1452.                 set {attack.%victim%} to "TNT"
  1453.             else:
  1454.                 set {attack.%victim%} to "不明"
  1455.             if {last.attacker.%victim%} is set:
  1456.                 send "{@logo} &cあなたは&6%{last.attacker.%victim%}%&cに殺されました" to victim
  1457.             else:
  1458.                 send "{@logo} &cあなたは&6%{attack.%victim%}%&cに殺されました" to victim
  1459.             send "{@logo} &b/tlist &eで生存者を確認できます" to victim
  1460.             send "{@logo} &b/back &eでロビーに戻ることができます" to victim
  1461.         add 1 to {game.kill::%{last.attacker.%victim%}%}
  1462.     add 1 to {kill::%{last.attacker.%victim%}%}
  1463.     add 1 to {de::%victim%}
  1464.     stop
  1465. on right click on sign:
  1466.     {death.floor::*} contains location of event-block
  1467.     set {_line} to line 1 of clicked block
  1468.     if player's tool's name is not "&a棒" or "&c松明":
  1469.         if {hakken::*} do not contain location of event-block:
  1470.             if {j::*} do not contain player:
  1471.                 add location of event-block to {hakken::*}
  1472.                 if {yk.%{_line}%} is "人狼" or "妖狐":
  1473.                     broadcast "{@logo} &c&l%{_line}%さんが無惨な%{yk.%{_line}%}%の姿で発見されました。"
  1474.                     if {yk.%{_line}%} is "人狼":
  1475.                         remove 1 from {j.left}
  1476.                     else if {yk.%{_line}%} is "妖狐":
  1477.                         remove 1 from {y.left}
  1478.                 else if {yk.%{_line}%} is "狂人" or "医者" or "探偵" or "村人" or "背徳者":
  1479.                     broadcast "{@logo} &c&l%{_line}%さんが無残な姿で発見されました。"
  1480.                     if {yk.%{_line}%} is "狂人":
  1481.                         remove 1 from {k.left}
  1482.                     else if {yk.%{_line}%} is "医者":
  1483.                         remove 1 from {i.left}
  1484.                     else if {yk.%{_line}%} is "探偵":
  1485.                         remove 1 from {t.left}
  1486.                     else if {yk.%{_line}%} is "村人":
  1487.                         remove 1 from {m.left}
  1488.                     else if {yk.%{_line}%} is "背徳者":
  1489.                         remove 1 from {h.left}
  1490.                 score()
  1491.             else:
  1492.                 send "{@logo} &c人狼は死体を発見できません"
  1493.         else:
  1494.             if {j::*} do not contain player:
  1495.                 send "{@logo} &aこの死体は発見済みです"
  1496.         send "{@logo} &c-------------------------------------" to player
  1497.         send "{@logo} &c名前 :%{_line}%" to player
  1498.         send "{@logo} &c役職 :%{yk.%{_line}%}%" to player
  1499.         send "{@logo} &c死亡推定時刻 :%{death.time::%{_line}%}%" to player
  1500.         send "{@logo} &c死因 :%{attack.%{_line}%}%" to player
  1501.         send "{@logo} &c--------------------------------------"
  1502.     else:
  1503.         if player's tool's name is "&a棒":
  1504.             if {yk.%{_line}%} is "人狼":
  1505.                 if {a.%{_line}%} is set:
  1506.                     command "execute %player% ~ ~ ~ /playsound minecraft:block.anvil.use master %player% ~ ~ ~ 1 2"
  1507.                     send "{@logo} &a%{_line}%&cを殺したプレイヤーは&a%{a.%{_line}%}%&cです!"
  1508.                     set player's tool to air
  1509.                 else:  
  1510.                     send "{@logo} &c%{_line}%はプレイヤーに殺害されていませんでした。"
  1511.             else:
  1512.                 send "{@logo} &cこの死体は人狼ではありません"
  1513.         else if player's tool's name is "&c松明":
  1514.             if {j::*} contains player:
  1515.                 command "/execute %player% ~ ~ ~ /playsound minecraft:entity.generic.extinguish_fire master %player% ~ ~ ~ 1 0.8"
  1516.                 set block at event-block to air
  1517.                 set player's tool to air
  1518.                 if {torch::%{_line}%} is set:
  1519.                     set block at location of block under the event-block to {torch::%{_line}%}
  1520.                     send "{@logo} &c死体の焼却処分に成功しました!"
  1521. On Hunger Meter Change:
  1522.     if {join::*} contains player:
  1523.         if {game.2} is not set:
  1524.             set player's hunger to 20
  1525.             set player's health to 20
  1526.         else:  
  1527.             set player's hunger to 0.5
  1528.     else:
  1529.         set player's hunger to 20
  1530.         set player's health to 20
  1531.     if {death::*} contains player:
  1532.         set player's hunger to 20
  1533.         set player's health to 20
  1534. on walk on water:
  1535.     if {game} is not set:
  1536.         player's gamemode is not creative
  1537.         teleport player to {マップ.lobby}
  1538.     else:
  1539.         if {death::*} contains player:
  1540.             player's gamemode is survival
  1541.             teleport player to {マップ.lobby}
  1542. on walk on lava:
  1543.     if {game.2} is not set:
  1544.         {join::*} contains player
  1545.         teleport player to {マップ.%{highplayer}%}
  1546.         send "{@logo} &c準備期間だけマグマから復帰が可能です" to player
  1547. on drop:
  1548.     if {game} is true:
  1549.         if {join::*} contains player:
  1550.             if player's gamemode is not creative:
  1551.                 cancel event
  1552.     else:
  1553.         player's gamemode is not creative
  1554.         event-item's name is "&eYour Status" or "&aOnline Players" or "&eYour settings" or "&9《&c試合に不参加&9》" or "&9《&a試合に参加&9》" or  "&e各陣営の勝率"
  1555.         cancel event
  1556. on rightclick:
  1557.     if event-block is bed or chest or crafting table or unlit furnace or enchantment table or anvil or ender chest or trapped chest or item frame or armor stand or down facing dropper or downward dispenser or hopper or minecarts with chest or anvil:
  1558.         if player's gamemode is not creative:
  1559.             cancel event
  1560.             send action bar "&cその行動は制限されています" to player
  1561. on command:
  1562.     if command is "me" or "w" or "tell" or "msg" or "message" or "t" or "r" or "reply" or "m" or "minecraft:me" or "minecraft:w" or "minecraft:tell" or "minecraft:msg" or "minecraft:message" or "minecraft:t" or "minecraft:r" or "minecraft:reply" or "minecraft:m":
  1563.         if {game} is true:
  1564.             if player's gamemode is not creative:
  1565.                 cancel event
  1566.                 send "{@logo} &cそのコマンドは使用できません"
  1567.     if command is "ch" or "lc" or "lunachat" or "minecraft:lc" or "minecraft:lunachat" or "minecraft:ch":
  1568.         if player's gamemode is not creative:
  1569.             cancel event
  1570.             send "{@logo} &cそのコマンドは使用できません"
  1571.     if command is "sudo":
  1572.         if player's name is not "{@owner}":
  1573.             cancel event
  1574.             send "{@logo} &cそのコマンドは使用できません"
  1575.     if command is "j":
  1576.         cancel event
  1577. On Consume of potion:
  1578.     wait 1 tick
  1579.     set {_bottle} to tool of player
  1580.     remove 1 of {_bottle} from player's inventory
  1581. on drink of milk:
  1582.     wait 1 tick
  1583.     command "/clear %player% bucket"
  1584. on damage:
  1585.     attacker's gamemode is not creative
  1586.     if attacker is a player:
  1587.         if victim is armor stand or item frame or minecarts with chest:
  1588.             cancel event
  1589. on inventory close:
  1590.     wait a tick
  1591.     if {to::*} contains player:
  1592.         send "{@logo} &cマップを投票してください" to player
  1593.         map(player)
  1594. on inventory click:
  1595.     if inventory name of player's current inventory is "&aPlease Vote a Map":
  1596.         cancel event
  1597.         clicked item is crafting table 
  1598.         if {to::*} contains player:
  1599.             send "{@logo} &a「&e&l%clicked item's name%&a」&aに投票しました" to player
  1600.             command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
  1601.             remove player from {to::*}
  1602.             close player's inventory
  1603.             if clicked slot is 1:
  1604.                 add 1 to {ma::%{map1.name}%}
  1605.                 loop {to::*}:
  1606.                     set slot 1 of loop-value's current inventory to glowing crafting table named "&2&l%{map1.name}%" with lore "&b《&3║ &7Made &f&a: &d%{map1.made}% &3║&b》" and "&e" and "&e%{ma::%{map1.name}%}%票"
  1607.             else if clicked slot is 2:
  1608.                 add 1 to {ma::%{map2.name}%}
  1609.                 loop {to::*}:
  1610.                     set slot 2 of loop-value's current inventory to glowing crafting table named "&2&l%{map2.name}%" with lore "&b《&3║ &7Made &f&a: &d%{map2.made}% &3║&b》" and "&e" and "&e%{ma::%{map2.name}%}%票"
  1611.             else if clicked slot is 3:
  1612.                 add 1 to {ma::%{map3.name}%}
  1613.                 loop {to::*}:
  1614.                     set slot 3 of loop-value's current inventory to glowing crafting table named "&2&l%{map3.name}%" with lore "&b《&3║ &7Made &f&a: &d%{map3.made}% &3║&b》" and "&e" and "&e%{ma::%{map3.name}%}%票"
  1615.                
  1616.     if {game} is not set:
  1617.         player's gamemode is not creative
  1618.         clicked slot is 0 or 4 or 1 or 7 or 8
  1619.         cancel event
  1620.     if inventory name of player's current inventory is "&e%player%'s Status":
  1621.         cancel event
  1622.     if inventory name of player's current inventory is "&aOnline Players-1" or "&e各陣営の勝率":
  1623.         cancel event
  1624.     if inventory name of player's current inventory is "&aクリックでテレポートできます":
  1625.         cancel event
  1626.         if clicked item is not air:
  1627.             set {_name} to clicked item's name
  1628.             replace all "&a" with "" in {_name}
  1629.             set {_name} to {_name} parsed as player
  1630.             teleport player to {_name}
  1631.             close player's inventory
  1632.     if inventory name of player's current inventory is "&eSettings":
  1633.         if clicked item is not air:
  1634.             cancel event
  1635.             command "execute %player% ~ ~ ~ /playsound minecraft:block.note.bell master %player% ~ ~ ~ 3 0.5"
  1636.             if clicked slot is 10:
  1637.                 if {chat.sound.%player%} is not set:
  1638.                     set {chat.sound.%player%} to "set"
  1639.                     send "&e[Setting] &cチャット時の音を無効にしました"
  1640.                 else:
  1641.                     delete {chat.sound.%player%}
  1642.                     send "&e[Setting] &aチャット時の音を有効にいました"
  1643.             else if clicked slot is 11:
  1644.                 if {paper.yk.%player%} is not set:
  1645.                     set {paper.yk.%player%} to "set"
  1646.                     send "&e[Setting] &c開始時に紙を渡すのを無効にしました"
  1647.                 else:
  1648.                     delete {paper.yk.%player%}
  1649.                     send "&e[Setting] &a開始時に紙を渡すのを有効にしました"
  1650.             else if clicked slot is 12:
  1651.                 if {check.%player%} is not set:
  1652.                     set {check.%Player%} to "set"  
  1653.                     send "&e[Setting] &cName Checkerを無効にしました"
  1654.                 else:
  1655.                     delete {check.%player%}
  1656.                     send "&e[Setting] &aName Checkerを有効にしました"
  1657.             close player's inventory
  1658.             setting(player)
  1659. on right click:
  1660.     event-item's name is "&eYour Status"
  1661.     command "execute %player% ~ ~ ~ /playsound minecraft:block.chest.open master %player% ~ ~ ~ 1 2"
  1662.     open chest with 3 rows named "&e%player%'s Status" to player
  1663.     set slot 0 of player's current inventory to player's skull named "&6%player%"
  1664.     set {_slot} to 1
  1665.     loop 9 times:
  1666.         set slot {_slot} of player's current inventory to dark gray glass pane named "&a"
  1667.         add 1 to {_slot}
  1668.     set slot 10 of player's current inventory to totems of undying named "&6勝利回数" with lore "&a%{win::%player%}% &7Wins"
  1669.     set slot 11 of player's current inventory to bone named "&9敗北回数" with lore "&a%{lose::%player%}% &7Loses"
  1670.     set slot 12 of player's current inventory to dark gray glass pane named "&a"
  1671.     set slot 13 of player's current inventory to iron sword named "&cキル回数" with lore "&a%{kill::%player%}% &7Kills"
  1672.     set slot 14 of player's current inventory to dark gray glass pane named "&a"
  1673.     set slot 15 of player's current inventory to ender dragon skull item named "&b死亡回数" with lore "&a%{de::%player%}% &7Death"
  1674.     set slot 16 of player's current inventory to nether star named "&e参加回数" with lore "&a%{jo::%player%}% &7Joins"
  1675.     set slot 17 of player's current inventory to dark gray glass pane named "&a"
  1676.     set slot 18 of player's current inventory to red dye named "&c&l人狼になった回数 : &a%{time.j.%player%}%"
  1677.     set slot 19 of player's current inventory to gray dye named "&7&l狂人になった回数 : &a%{time.k.%player%}%"
  1678.     set slot 20 of player's current inventory to light blue dye named "&b&l探偵になった回数 : &a%{time.t.%player%}%"
  1679.     set slot 21 of player's current inventory to yellow dye named "&e&l医者になった回数 : &a%{time.i.%player%}%"
  1680.     set slot 22 of player's current inventory to pink dye named "&d&l妖狐になった回数 : &a%{time.y.%player%}%"
  1681.     set slot 23 of player's current inventory to orange dye named "&6&l背徳者になった回数 : &a%{time.h.%player%}%"
  1682.     set slot 24 of player's current inventory to lime dye named "&a&l村人になった回数 : &a%{time.m.%player%}%"
  1683.     set slot 25 of player's current inventory to dark gray glass pane named "&a"
  1684.     set slot 26 of player's current inventory to dark gray glass pane named "&a"
  1685.     set slot 27 of player's current inventory to dark gray glass pane named "&a"
  1686. on right click:
  1687.     if event-item's name is "&eYour settings":
  1688.         setting(player)
  1689.     else if event-item's name is "&9《&c試合に不参加&9》" or "&9《&a試合に参加&9》":
  1690.         if {game} is false:
  1691.             if event-item's name is "&9《&c試合に不参加&9》":
  1692.                 set player's tool to lime dye named "&9《&a試合に参加&9》"
  1693.             else if event-item's name is "&9《&a試合に参加&9》":
  1694.                 set player's tool to gray dye named "&9《&c試合に不参加&9》"
  1695.         command "execute %player% ~ ~ ~ /playsound minecraft:block.note.hat master %player% ~ ~ ~ 2 1"
  1696.         execute player command "/nojoin"
  1697.     else if event-item's name is "&aOnline Players":
  1698.         open chest with 6 rows named "&aOnline Players-1" to player
  1699.         set slot 0 of player's current inventory to sunflower named "&eAll Players : &a%number of all players%"
  1700.         set {_slot} to 10
  1701.         loop all players:
  1702.             if {_slot} is 17 or 26 or 35:
  1703.                 add 2 to {_slot}
  1704.             if {_slot} is 43:
  1705.                 stop loop
  1706.                 set slot 53 of player's current inventory to arrow named "&cNext"
  1707.             set {_w} to "%loop-player%" parsed as player
  1708.             set slot {_slot} of player's current inventory to {_w}'s skull named "&e%{_w}%" with lore "&6勝利回数 : &a%{win::%{_w}%}%" and "&9敗北回数 : &a%{lose::%{_w}%}%" and "&cキル数 : &a%{kill::%{_w}%}%" and "&b死亡回数 : &a%{de::%{_w}%}%" and "&e参加回数 : &a%{jo::%{_w}%}%" and "&c&l人狼になった回数 : &a%{time.j.%{_w}%}%" and "&7&l狂人になった回数 : &a%{time.k.%{_w}%}%" and "&b&l探偵になった回数 : &a%{time.t.%{_w}%}%" and "&e&l医者になった回数 : &a%{time.i.%{_w}%}%" and "&d&l妖狐になった回数 : &a%{time.y.%{_w}%}%" and "&6&l背徳者になった回数 : &a%{time.h.%{_w}%}%" and "&a&l村人になった回数 : &a%{time.m.%{_w}%}%"
  1709.             add 1 to {_slot}
  1710. on right click holding enchanted book:
  1711.     event-item's name is "&e各陣営の勝率"
  1712.     open "HOPPER" named "&e各陣営の勝率" to player
  1713.     set slot 1 of player's current inventory to glowing red dye named "&c&l人狼陣営" with lore "&7合計勝利回数 : &a%{win.j}%回" and "&7合計敗北回数 : &a%{lose.j}%回" and "&7総試合回数 : &a%{game.time}%" and "&7勝率 : &a%{win.j}/{game.time}*100%%%"
  1714.     set slot 2 of player's current inventory to glowing lime dye named "&a&l村人陣営" with lore "&7合計勝利回数 : &a%{win.m}%回" and "&7合計敗北回数 : &a%{lose.m}%回" and "&7総試合回数 : &a%{game.time}%" and "&7勝率 : &a%{win.m}/{game.time}*100%%%"
  1715.     set slot 3 of player's current inventory to glowing pink dye named "&d&l妖狐陣営" with lore "&7合計勝利回数 : &a%{win.y}%回" and "&7合計敗北回数 : &a%{lose.y}%回" and "&7総試合回数 : &a%{game.time.y}%" and "&7勝率 : &a%{win.y}/{game.time.y}*100%%%"
  1716. on chat:
  1717.     cancel event
  1718.     if {rank.%player%} is not "MVP" or "EMERALD":
  1719.         set {_mes.%player%} to message
  1720.         replace all "§" with "" in {_mes.%player%}
  1721.         replace all "7(" with "&7(" in {_mes.%player%}
  1722.     else:
  1723.         set {_mes.%player%} to message
  1724.     if {death::*} contains player:
  1725.         if player is not op:
  1726.             message "%{message.%player%}%&a[観戦]%player%:&b%{_mes.%player%}%" to {death::*}
  1727.         else:
  1728.             message "&9*&a[観戦]%player%:&b%{_mes.%player%}%" to {death::*}
  1729.     else:
  1730.         if player is op:
  1731.             broadcast "&9*%{co.%player%}%%player%:&f%{_mes.%player%}%"
  1732.         else:
  1733.             broadcast "%{message.%player%}%%{co.%player%}%%player%:&f%{_mes.%player%}%"
  1734.     if {game.2} is true:
  1735.         {now.%player%} is "join"
  1736.         loop all players:
  1737.             {chat.sound.%loop-player%} is not set
  1738.             command "execute %loop-player% ~ ~ ~ /playsound minecraft:block.lever.click master %loop-player% ~ ~ ~ 0.8 2"
  1739. command /help [<text>]:
  1740.     trigger:
  1741.         if arg-1 is not "j" or "k" or "t" or "i" or "y" or "m" or "h":
  1742.             send "{@logo} &c確認可能な役職は[j/k/t/i/y/h/m]"
  1743.         else:
  1744.             if arg-1 is "j":
  1745.                 send "{@logo} &7-------=&8【&c&l人狼&8】&7=-------"
  1746.                 send "{@logo} &e人狼陣営。&b/jc <msg>&eで人狼同士で連絡ができる"
  1747.                 send "{@logo} &bショップにも多くのアイテムがあり"
  1748.                 send "{@logo} &b狂人からは人狼がわからない"
  1749.                 send "{@logo} &eまた、Sidebarから各役職の実数が確認できる"
  1750.                 send "{@logo} &6&l勝利条件 : 村人陣営と妖狐陣営の全滅"
  1751.             else if arg-1 is "k":
  1752.                 send "{@logo} &7-------=&8【&5&l狂人&8】&7=-------"
  1753.                 send "{@logo} &e人狼陣営。ショップは村人と変わらない"
  1754.                 send "{@logo} &b人狼のサポートをする役職。"
  1755.                 send "{@logo} &e人狼が誰かはわからなく、特殊能力もあまりない"
  1756.                 send "{@logo} &6&l勝利条件 : 村人陣営と妖狐陣営の全滅"
  1757.             else if arg-1 is "t":
  1758.                 send "{@logo} &7-------=&8【&b&l探偵&8】&7=-------"
  1759.                 send "{@logo} &e村人陣営。人狼を探すのにとても優れている。"
  1760.                 send "{@logo} &bショップにも多くのアイテムがあり、"
  1761.                 send "{@logo} &b村人陣営全体を支える。"
  1762.                 send "{@logo} &6&l勝利条件 : 人狼陣営と妖狐陣営の全滅"
  1763.             else if arg-1 is "i":
  1764.                 send "{@logo} &7-------=&8【&e&l医者&8】&7=-------"
  1765.                 send "{@logo} &e村人陣営。回復役"
  1766.                 send "{@logo} &b最初に配られる「&b医者ソード&e」をもって"
  1767.                 send "{@logo} &b殴ることで、殴った相手を回復することができる"
  1768.                 send "{@logo} &eまた、ショップにも少しアイテムがある"
  1769.                 send "{@logo} &6&l勝利条件 : 人狼陣営と妖狐陣営の全滅"
  1770.             else if arg-1 is "y":
  1771.                 send "{@logo} &7-------=&8【&d&l妖狐&8】&7=-------"
  1772.                 send "{@logo} &e妖狐陣営。とても特殊な役職"
  1773.                 send "{@logo} &b村人陣営、陣営陣営のどちからが勝利したとき"
  1774.                 send "{@logo} &b生きていれば勝利することができる"
  1775.                 send "{@logo} &e妖狐を支える「背徳者」という役職もある"
  1776.                 send "{@logo} &6&l勝利条件 : 村人または人狼陣営が勝利したときに生き残る"
  1777.             else if arg-1 is "h":
  1778.                 send "{@logo} &7-------=&8【&6&l背徳者&8】&7=-------"
  1779.                 send "{@logo} &e妖狐陣営。妖狐を支える役職"
  1780.                 send "{@logo} &b妖狐が誰かをわかることができ、妖狐を支える"
  1781.                 send "{@logo} &e妖狐が死ぬと、背徳者も一緒に死んでしまう"
  1782.                 send "{@logo} &6&l勝利条件 : 妖狐の勝利"
  1783.             else if arg-1 is "m":
  1784.                 send "{@logo} &7-------=&8【&a&l村人&8】&7=-------"
  1785.                 send "{@logo} &e村人陣営。これといった能力もない"
  1786.                 send "{@logo} &6&l勝利条件 : 人狼陣営と妖狐陣営の全滅"
  1787.             send "{@logo} &7-------------------------------"
  1788.                
  1789. command /rankhelp:
  1790.     trigger:
  1791.         send "&e&l[Rank] &7----------------=&8【Rank特典】&8=----------------"
  1792.         send "&e&l[Rank] &7カラーコードが使える(MVP,EMERALD)"
  1793.         send "&e&l[Rank] &7人数制限を無視できる(MVP,EMERALD)"
  1794.         send "&e&l[Rank] &7&mかわねこに感謝される"
  1795.         send "&e&l[Rank] &7鯖内での報酬箱が2個もらえる(MVP)"
  1796.         send "&e&l[Rank] &7鯖内での報酬箱が4個もらえる(EMERALD)"
  1797.         send "&e&l[Rank] &7鯖内での報酬箱を一括開封できる(EMERALD)"
  1798.         send "&e&l[Rank] &2他にアイデアがある人は{@owner}までお願いします"
  1799.         send "&e&l[Rank] &7---------------------------------------------------"
  1800. command /rank [<player>] [<text>]:
  1801.     permission: skript.admin
  1802.     trigger:
  1803.         if arg-1 is set:
  1804.             if arg-2 is "MVP" or "EMERALD":
  1805.                 set {rank.%arg-1%} to arg-2
  1806.                 send "&e&l[Rank] &e%arg-1%&7が&e%arg-2%&7ランクを購入しました" to ops
  1807.                 send "&e&l[Rank] &a&l%arg-2%&eランクのご購入ありがとうございます!" to arg-1
  1808.                 send "&e&l[Rank] &2/rankhelp &eでできることを確認することができます" to arg-1
  1809.                 if arg-2 is "mvp":
  1810.                     set {message.%arg-1%} to "&b+"
  1811.                 else if arg-2 is "emerald":
  1812.                     set {message.%arg-1%} to "&a&l+"
  1813. command /resetplayer:
  1814.     permission: skript.admin
  1815.     aliases: rs
  1816.     trigger:
  1817.         if player's name is "{@owner}":
  1818.             loop all players:
  1819.                 loop-player is not op
  1820.                 kick the loop-player due to "&ckickさせてもらいます。申し訳ありません"
  1821.         else:
  1822.             send "{@logo} &cオーナーコマンドです"
  1823. every 4 minutes:
  1824.     broadcast "&b[TIPS] &e寄付&7や&e投票&7などもお願いします"
  1825.     broadcast "&b[TIPS] &a/co &7でcoコマンドを確認できます"
  1826.     broadcast "&b[TIPS] &7意見があれば&b{@owner}&7まで!"
  1827.     broadcast "&b[TIPS] &2/rankhelp &7でランクの特典を確認できます"
  1828.     command "/tellraw @a ["""",{""text"":""[TIPS]"",""color"":""aqua""},{""text"":"" Discord \u2192"",""color"":""gray""},{""text"":"" ""},{""text"":""https://discord.gg/tHyE4z9"",""color"":""green"",""clickEvent"":{""action"":""open_url"",""value"":""https://discord.gg/tHyE4z9""}}]"
  1829. on click:
  1830.     if player's tool is wooden sword or stone sword or iron sword or bow:
  1831.         add "{Unbreakable:1}" to item-nbt of tool of player
  1832. every 15 minutes:
  1833.     loop all players:
  1834.         if {rank.%loop-player%} is "MVP":
  1835.             set {_times} to 2
  1836.             send "&6&l[報酬] &e&lプレイボーナス! 報酬が&6&l2&e&lつ追加されました。(MVPbonus) ロビーのNPCをクリックで受け取ることができます" to loop-player
  1837.         else if {rank.%loop-player%} is "EMERALD":
  1838.             set {_times} to 4
  1839.             send "&6&l[報酬] &e&lプレイボーナス! 報酬が&6&l4&e&lつ追加されました。(EMERALDbonus) ロビーのNPCをクリックで受け取ることができます" to loop-player
  1840.         else:
  1841.             set {_times} to 1
  1842.             send "&6&l[報酬] &e&lプレイボーナス! 報酬が&6&l1&e&lつ追加されました。 ロビーのNPCをクリックで受け取ることができます" to loop-player
  1843.         loop {_times} times:
  1844.             chance of 13%:
  1845.                 add 1 to {reward.legend.%uuid of loop-player%}
  1846.             else:
  1847.                 chance of 40%:
  1848.                     add 1 to {reward.rare.%uuid of loop-player%}
  1849.                 else:
  1850.                     chance of 100%:
  1851.                         add 1 to {reward.normal.%uuid of loop-player%}
  1852. on rightclick on entity:
  1853.     if player's gamemode is not creative:
  1854.         if event-entity is a armor stand or item frame or minecarts with chest:
  1855.             cancel event
  1856.     if name of entity is "&9《&a報酬受け取り&9》":
  1857.         set {_slot} to 0
  1858.         open chest with 6 rows named "&6報酬&7-Right Click" to player
  1859.         loop {reward.normal.%uuid of player%} times:
  1860.             set slot {_slot} of player's current inventory to chest named "&7Normal Chest"
  1861.             add 1 to {_slot}
  1862.         loop {reward.rare.%uuid of player%} times:
  1863.             set slot {_slot} of player's current inventory to minecarts with chest named "&eRare Chest"
  1864.             add 1 to {_slot}
  1865.         loop {reward.legend.%uuid of player%} times:
  1866.             set slot {_slot} of player's current inventory to ender chest named "&6Legend Chest"
  1867.             add 1 to {_slot}
  1868.         if {_slot} is 0:
  1869.             set slot 22 of player's current inventory to barrier named "&c報酬はもらっていません"
  1870.         else:
  1871.             set slot 53 of player's current inventory to empty end portal frame named "&9《&6&l一括開封&9》" with lore "&cEMERALDランク以上が使用可能"
  1872. on inventory click:
  1873.     inventory name of player's current inventory is "&6報酬"
  1874.     cancel event
  1875.     if clicked item is nether star:
  1876.         set {_na} to clicked item's name
  1877.         replace all "&e" with "" in {_na}
  1878.         replace all "&bXP" with "" in {_na}
  1879.         set {_na} to {_na} parsed as number
  1880.         add {_na} to {xp.%uuid of player%}
  1881.         command "/execute %player% ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup master %player%"
  1882.         sidebar(player)
  1883.         set clicked item to air
  1884.         levelup(player)
  1885.         delete {_sl::*}
  1886.         set {_sl::*} to all items in player's current inventory
  1887.         if number of {_sl::*} is 0:
  1888.             set {_slot} to 0
  1889.             open chest with 6 rows named "&6報酬&7-Right Click" to player
  1890.             loop {reward.normal.%uuid of player%} times:
  1891.                 set slot {_slot} of player's current inventory to chest named "&7Normal Chest"
  1892.                 add 1 to {_slot}
  1893.             loop {reward.rare.%uuid of player%} times:
  1894.                 set slot {_slot} of player's current inventory to minecarts with chest named "&eRare Chest"
  1895.                 add 1 to {_slot}
  1896.             loop {reward.legend.%uuid of player%} times:
  1897.                 set slot {_slot} of player's current inventory to ender chest named "&6Legend Chest"
  1898.                 add 1 to {_slot}
  1899.             if {_slot} is 0:
  1900.                 set slot 22 of player's current inventory to barrier named "&c報酬はもらっていません"
  1901.             else:
  1902.                 set slot 53 of player's current inventory to empty end portal frame named "&9《&6&l一括開封&9》" with lore "&cEMERALDランク以上が使用可能"
  1903. on inventory click:
  1904.     inventory name of player's current inventory is "&6報酬&7-Right Click"
  1905.     cancel event
  1906.     if clicked item is chest or ender chest or minecarts with chest:
  1907.         open chest with 6 rows named "&6報酬" to player
  1908.         if clicked item's name is "&7Normal Chest":
  1909.             set {_loop} to random integer between 4 and 6
  1910.             remove 1 from {reward.normal.%uuid of player%}
  1911.         else if clicked item's name is "&eRare Chest":
  1912.             set {_loop} to random integer between 5 and 8
  1913.             remove 1 from {reward.rare.%uuid of player%}
  1914.         else if clicked item's name is "&6Legend Chest":
  1915.             set {_loop} to random integer between 7 and 14
  1916.             remove 1 from {reward.legend.%uuid of player%}
  1917.         loop {_loop} times:
  1918.             set {_slot} to random integer between 1 and 53
  1919.             set {_stack} to random integer between 6 and 30
  1920.             set slot {_slot} of player's current inventory to {_stack} of nether star named "&e%{_stack}% &bXP"
  1921.     else if clicked item is empty end portal frame:
  1922.         if {rank.%player%} is "EMERALD":
  1923.             set {_item::*} to all items in player's current inventory
  1924.             send "&e%number of {_item::*}-1%個の報酬箱を開封中…" to player
  1925.             close player's inventory
  1926.             loop {reward.normal.%uuid of player%} times:
  1927.                 add random integer between 4 and 6 to {_loop.time}
  1928.             loop {reward.rare.%uuid of player%} times:
  1929.                 add random integer between 5 and 8 to {_loop.time}
  1930.             loop {reward.legend.%uuid of player%} times:
  1931.                 add random integer between 7 and 14 to {_loop.time}
  1932.             loop {_loop.time} times:
  1933.                 add random integer between 6 and 30 to {_add.xp}
  1934.             send "&d%{_add.xp}%&bXP&eを受け取りました!"
  1935.             command "/execute %player% ~ ~ ~ playsound entity.player.levelup master %player% ~ ~ ~ 1 1.9"
  1936.             add {_add.xp} to {xp.%uuid of player%}
  1937.             levelup(player)
  1938.             sidebar(player)
  1939.             delete {reward.normal.%uuid of player%}
  1940.             delete {reward.rare.%uuid of player%}
  1941.             delete {reward.legend.%uuid of player%}
  1942.         else:
  1943.             send "&cEMERALDランク以上が使用可能です"
  1944.            
  1945.        
  1946. command /reward [<player>] [<text>]:
  1947.     permission: skript.admin
  1948.     permission message : &cYou don't have a permission to use this command.
  1949.     trigger:
  1950.         if sender is a player:
  1951.             set {_send} to player
  1952.         else:
  1953.             set {_send} to "CONSOLE"
  1954.         if arg-2 is "normal" or "rare" or "legend":
  1955.             set {_u} to uuid of arg-1
  1956.             add 1 to {reward.%arg-2%.%{_u}%}
  1957.             send "&a%arg-1%へ%arg-2%の報酬を送りました!"
  1958.             send "&a%{_send}%から%arg-2%の報酬箱をもらいました" to arg-1
  1959. command /level [<number>] [<player>]:
  1960.     permission: skript.admin
  1961.     trigger:
  1962.         if player's name is "{@owner}":
  1963.             if arg-1 is set:
  1964.                 if arg-2 is set:
  1965.                     set {_u} to uuid of arg-2
  1966.                     send "&a%arg-2%のレベルを%arg-1%にしました"
  1967.                     set {level::%{_u}%} to arg-1
  1968.                     set {ranking.level::%arg-2%} to {level::%{_u}%}
  1969.                     {game} is not set
  1970.                     if {auto.%arg-2%} is true:
  1971.                         set arg-2's tablist name to "&5[&6Lv.%{level::%{_u}%}%&5]&a%arg-2%"
  1972.                     else:
  1973.                         set arg-2's tablist name to "&5[&6Lv.%{level::%{_u}%}%&5]&c%arg-2%"
  1974.                 else:
  1975.                     send "&cプレイヤーを書いてください"
  1976.             else:
  1977.                 send "&cレベルを書いてください"
  1978.         else:
  1979.             send "&cオーナーコマンドです"    
  1980. #=============================================Parkour========================================================
  1981. command /checkpoint:
  1982.     aliases: cp
  1983.     trigger:
  1984.         if {game} is not set:
  1985.             teleport player to {checkpoint.%player%}
  1986.         else:
  1987.             if {death::*} do not contain player:
  1988.                 send "&e[Parkour] &c使用できない役職です"
  1989.             else:
  1990.                 teleport player to {checkpoint.%player%}
  1991. command /parkoursign:
  1992.     permission: skript.admin
  1993.     trigger:
  1994.         give player sign named "&e&lParkour sign"
  1995.         set {asure.%player%} to "set"
  1996. on place of sign:
  1997.     {asure.%player%} is set
  1998.     set line 1 of event-block to "&7================="
  1999.     set line 2 of event-block to "&9《&eParkour&9》"
  2000.     set line 3 of event-block to "&6&lCheckPoint"
  2001.     set line 4 of event-block to "&7================="
  2002.     delete {asure.%player%}
  2003. on right click on sign:
  2004.     line 1 of event-block is "&7================="
  2005.     line 2 of event-block is "&9《&eParkour&9》"
  2006.     line 3 of event-block is "&6&lCheckPoint"
  2007.     line 4 of event-block is "&7================="
  2008.     if block under the player is air:
  2009.         send "&e[Parkour] &cError : 空中では設定できません"
  2010.     else:
  2011.         send "&e[Parkour] &aチェックポイントを更新しました" to player
  2012.         command "execute %player% ~ ~ ~ /playsound minecraft:block.chest.locked master %player% ~ ~ ~ 2 2"
  2013.         set {checkpoint.%player%} to location of player
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
 
Top