SHARE
TWEET

Untitled

taktie0304 Jul 22nd, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /scoreoption:
  2.     trigger:
  3.         command "/scoreboard teams add red"
  4.         command "/scoreboard teams add blue"
  5.         command "/scoreboard teams option red color red"
  6.         command "/scoreboard teams option blue color blue"
  7.         command "/scoreboard teams option red friendlyfire false"
  8.         command "/scoreboard teams option blue friendlyfire false"
  9.         command "/scoreboard teams option red nametagVisibility hideForOtherTeams"
  10.         command "/scoreboard teams option blue nametagVisibility hideForOtherTeams"
  11.         set {game} to false
  12.         set {start} to false
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. on rightclick on wood button:
  21.     if {start} is false:
  22.         if {game} is false:
  23.             set {start} to true
  24.             wait 1 second
  25.             loop all players:
  26.                 send loop-player title "&a5" with subtitle "&fスタートまで" for 1 seconds
  27.             wait 1 second
  28.             loop all players:
  29.                 send loop-player title "&a4" with subtitle "&fスタートまで" for 1 seconds
  30.             wait 1 second
  31.             loop all players:
  32.                 send loop-player title "&a3" with subtitle "&fスタートまで" for 1 seconds
  33.             wait 1 second
  34.             loop all players:
  35.                 send loop-player title "&a2" with subtitle "&fスタートまで" for 1 seconds
  36.             wait 1 second
  37.             loop all players:
  38.                 send loop-player title "&a1" with subtitle "&fスタートまで" for 1 seconds
  39.             wait 2 second
  40.             set {gameplayer} to 0
  41.             loop all players:
  42.                 if {join.%loop-player%} is true:
  43.                     add 1 to {gameplayer}
  44.             if {gameplayer} <= 1:
  45.                 broadcast "&c参加人数が足りませんでした"
  46.                 wait 1 second
  47.                 set {start} to false
  48.             else:
  49.                 set {red} to 0
  50.                 set {blue} to 0
  51.                 set {count} to 120
  52.                 set {lobby} to location (49, 5, 10)
  53.                 set {cmdlobby} to "49 5 10"
  54.                 set {redspawn} to location (-80, 22, 33)
  55.                 set {bluespawn} to location (-18, 19, 0)
  56.                 set {obsidian} to true
  57.                 set {putobsidian} to false
  58.                 command "/scoreboard teams empty red"
  59.                 command "/scoreboard teams empty blue"
  60.                 loop all players:
  61.                     if {join.%loop-player%} is true:
  62.                         if {a} == 0:
  63.                             command "clear %loop-player%"
  64.                             if {obsidian} is true:
  65.                                 command "/give %loop-player% minecraft:obsidian 1 0  {display:{Name:""金ブロックの上に置いてください!""},CanPlaceOn:[""minecraft:gold_block""]}"
  66.                                 set {obsidian} to false
  67.                             set {team.%loop-player%} to "red"
  68.                             set {teamchat.%loop-player%} to "&c"
  69.                             add 1 to {red}
  70.                             command "/scoreboard teams join red %loop-player%"
  71.                             wait 2 ticks
  72.                             teleport the loop-player to {redspawn}
  73.                             set rf max hp of loop-player to 12
  74.                             give bow to loop-player
  75.                             give 32 arrow to loop-player
  76.                             give red wool named "&cあなたは赤チームです" to loop-player
  77.                             equip loop-player with leather helmet
  78.                             dye loop-player's helmet (255, 51, 0)
  79.                             set the loop-player's gamemode to adventure
  80.                             set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&c%loop-player%&r%{suffix.%uuid of loop-player%}%"
  81.                             set loop-player's display name to " "
  82.                             send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を防衛せよ" for 5 seconds
  83.                             delete {join.%loop-player%}
  84.                             set {a} to 1
  85.                         else:
  86.                             command "clear %loop-player%"
  87.                             command "/give %loop-player% minecraft:diamond_pickaxe 1 0 {display:{Name:""黒曜石を破壊してください!""},ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
  88.                             set {team.%loop-player%} to "blue"
  89.                             set {teamchat.%loop-player%} to "&9"
  90.                             add 1 to {blue}
  91.                             command "/scoreboard teams join blue %loop-player%"
  92.                             wait 2 ticks
  93.                             teleport the loop-player to {bluespawn}
  94.                             set rf max hp of loop-player to 12
  95.                             give bow to loop-player
  96.                             give 32 arrow to loop-player
  97.                             give blue wool named "&9あなたは青チームです" to loop-player
  98.                             equip loop-player with leather helmet
  99.                             dye loop-player's helmet (0, 51, 255)
  100.                             set the loop-player's gamemode to adventure
  101.                             set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&9%loop-player%&r%{suffix.%uuid of loop-player%}%"
  102.                             set loop-player's display name to " "
  103.                             send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を破壊せよ" for 5 seconds
  104.                             delete {join.%loop-player%}
  105.                             set {a} to 0
  106.                 set {game} to true
  107.                 broadcast "&c赤%{red}%人&a &9青%{blue}%人 &a参加中"
  108.                 enable PvP
  109.                 set {start} to false
  110.         else:
  111.             send "&c現在試合中です" to player
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. on damage of player:
  120.     if {game} is true:
  121.         if {team.%attacker%} == {team.%victim%}:
  122.             cancel event
  123.  
  124. on death of player:
  125.     if {game} is true:
  126.         set the death message to "%{teamchat.%attacker%}%%attacker% &7--&8|&6)&7--> %{teamchat.%victim%}%%victim%"
  127.         set {DeathPoint.%player%} to location of player
  128.         force the player to respawn
  129.         teleport player to {DeathPoint.%player%}
  130.         set the player's gamemode to spectator
  131.         remove 1 from {%{team.%victim%}%}
  132.         add 1 to {kill.%uuid of attacker%}
  133.         add 1 to {death.%uuid of victim%}
  134.         add 3 to {xp.%uuid of attacker%}
  135.         send "&a+3xp" to attacker
  136.         if {putobsidian} is true:
  137.             if {red} is 0:
  138.                 loop all players:
  139.                     if {team.%loop-player%} is "red":
  140.                         send loop-player title " " with subtitle "&f味方が全員倒された" for 3 seconds
  141.                         execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  142.                     if {team.%loop-player%} is "blue":
  143.                         send loop-player title " " with subtitle "&f敵は全滅した。黒曜石を破壊せよ" for 3 seconds
  144.                         execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  145.             else if {blue} is 0:
  146.                 set {game} to false
  147.                 disable PvP
  148.                 loop all players:
  149.                     if {team.%loop-player%} is "red":
  150.                         send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  151.                         send "&6&l勝利!" to loop-player
  152.                         send "&a+10xp" to loop-player
  153.                         add 10 to {xp.%uuid of loop-player%}
  154.                         add 1 to {win.%uuid of loop-player%}
  155.                         execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  156.                     if {team.%loop-player%} is "blue":
  157.                         send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  158.                         send "&9&l敗北..." to loop-player
  159.                         send "&a+2xp" to loop-player
  160.                         add 2 to {xp.%uuid of loop-player%}
  161.                         add 1 to {lose.%uuid of loop-player%}
  162.                         execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  163.                 wait 6 seconds
  164.                 loop all players:
  165.                     if {team.%loop-player%} is set:
  166.                         close loop-player's inventory
  167.                         command "clear %loop-player%"
  168.                         give grey dye named "&eゲームに参加する" to loop-player
  169.                         teleport the loop-player to {lobby}
  170.                         set rf max hp of loop-player to 20
  171.                         set health of loop-player to max health of loop-player
  172.                         set the loop-player's gamemode to adventure
  173.                         set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  174.                         set loop-player's display name to "%loop-player%"
  175.                         delete {team.%loop-player%}
  176.                         command "/fill -43 21 -9 -47 21 -5 air"
  177.                         command "/fill -11 21 37 -7 21 41 air"
  178.                     else:
  179.                         send "&a試合が終了しました" to loop-player
  180.         else if {red} is 0:
  181.             set {game} to false
  182.             disable PvP
  183.             loop all players:
  184.                 if {team.%loop-player%} is "red":
  185.                     send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  186.                     send "&9&l敗北..." to loop-player
  187.                     send "&a+2xp" to loop-player
  188.                     add 2 to {xp.%uuid of loop-player%}
  189.                     add 1 to {lose.%uuid of loop-player%}
  190.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  191.                 if {team.%loop-player%} is "blue":
  192.                     send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  193.                     send "&6&l勝利!" to loop-player
  194.                     send "&a+10xp" to loop-player
  195.                     add 10 to {xp.%uuid of loop-player%}
  196.                     add 1 to {win.%uuid of loop-player%}
  197.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  198.             wait 6 seconds
  199.             loop all players:
  200.                 if {team.%loop-player%} is set:
  201.                     close loop-player's inventory
  202.                     command "clear %loop-player%"
  203.                     give grey dye named "&eゲームに参加する" to loop-player
  204.                     teleport the loop-player to {lobby}
  205.                     set rf max hp of loop-player to 20
  206.                     set health of loop-player to max health of loop-player
  207.                     set the loop-player's gamemode to adventure
  208.                     set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  209.                     set loop-player's display name to "%loop-player%"
  210.                     delete {team.%loop-player%}
  211.                     command "/fill -43 21 -9 -47 21 -5 air"
  212.                     command "/fill -11 21 37 -7 21 41 air"
  213.                 else:
  214.                     send "&a試合が終了しました" to loop-player
  215.         else if {blue} is 0:
  216.             set {game} to false
  217.             disable PvP
  218.             loop all players:
  219.                 if {team.%loop-player%} is "red":
  220.                     send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  221.                     send "&6&l勝利!" to loop-player
  222.                     send "&a+10xp" to loop-player
  223.                     add 10 to {xp.%uuid of loop-player%}
  224.                     add 1 to {win.%uuid of loop-player%}
  225.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  226.                 if {team.%loop-player%} is "blue":
  227.                     send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  228.                     send "&9&l敗北..." to loop-player
  229.                     send "&a+2xp" to loop-player
  230.                     add 2 to {xp.%uuid of loop-player%}
  231.                     add 1 to {lose.%uuid of loop-player%}
  232.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  233.             wait 6 seconds
  234.             loop all players:
  235.                 if {team.%loop-player%} is set:
  236.                     close loop-player's inventory
  237.                     command "clear %loop-player%"
  238.                     give grey dye named "&eゲームに参加する" to loop-player
  239.                     teleport the loop-player to {lobby}
  240.                     set rf max hp of loop-player to 20
  241.                     set health of loop-player to max health of loop-player
  242.                     set the loop-player's gamemode to adventure
  243.                     set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  244.                     set loop-player's display name to "%loop-player%"
  245.                     delete {team.%loop-player%}
  246.                     command "/fill -43 21 -9 -47 21 -5 air"
  247.                     command "/fill -11 21 37 -7 21 41 air"
  248.                 else:
  249.                     send "&a試合が終了しました" to loop-player
  250.         else:
  251.             loop all players:
  252.                 if {team.%loop-player%} is "red":
  253.                     send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  254.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  255.                 if {team.%loop-player%} is "blue":
  256.                     send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  257.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266. on quit:
  267.     if {team.%player%} is set:
  268.         remove 1 from {%{team.%player%}%}
  269.         delete {team.%player%}
  270.         delete {teamchat.%player%}
  271.         command "/scoreboard teams leave %{team.%player%}% %player%"
  272.         if {red} is 0:
  273.             set {game} to false
  274.             disable PvP
  275.             loop all players:
  276.                 if {team.%loop-player%} is "red":
  277.                     send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  278.                     send "&9&l敗北..." to loop-player
  279.                     send "&a+2xp" to loop-player
  280.                     add 2 to {xp.%uuid of loop-player%}
  281.                     add 1 to {lose.%uuid of loop-player%}
  282.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  283.                 if {team.%loop-player%} is "blue":
  284.                     send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  285.                     send "&6&l勝利!" to loop-player
  286.                     send "&a+10xp" to loop-player
  287.                     add 10 to {xp.%uuid of loop-player%}
  288.                     add 1 to {win.%uuid of loop-player%}
  289.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  290.             wait 6 seconds
  291.             loop all players:
  292.                 if {team.%loop-player%} is set:
  293.                     close loop-player's inventory
  294.                     command "clear %loop-player%"
  295.                     give grey dye named "&eゲームに参加する" to loop-player
  296.                     teleport the loop-player to {lobby}
  297.                     set rf max hp of loop-player to 20
  298.                     set health of loop-player to max health of loop-player
  299.                     set the loop-player's gamemode to adventure
  300.                     set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  301.                     set loop-player's display name to "%loop-player%"
  302.                     delete {team.%loop-player%}
  303.                     command "/fill -43 21 -9 -47 21 -5 air"
  304.                     command "/fill -11 21 37 -7 21 41 air"
  305.                 else:
  306.                     send "&a試合が終了しました" to loop-player
  307.         else if {blue} is 0:
  308.             set {game} to false
  309.             disable PvP
  310.             loop all players:
  311.                 if {team.%loop-player%} is "red":
  312.                     send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  313.                     send "&6&l勝利!" to loop-player
  314.                     send "&a+10xp" to loop-player
  315.                     add 10 to {xp.%uuid of loop-player%}
  316.                     add 1 to {win.%uuid of loop-player%}
  317.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  318.                 if {team.%loop-player%} is "blue":
  319.                     send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  320.                     send "&9&l敗北..." to loop-player
  321.                     send "&a+2xp" to loop-player
  322.                     add 2 to {xp.%uuid of loop-player%}
  323.                     add 1 to {lose.%uuid of loop-player%}
  324.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  325.             wait 6 seconds
  326.             loop all players:
  327.                 if {team.%loop-player%} is set:
  328.                     close loop-player's inventory
  329.                     command "clear %loop-player%"
  330.                     give grey dye named "&eゲームに参加する" to loop-player
  331.                     teleport the loop-player to {lobby}
  332.                     set rf max hp of loop-player to 20
  333.                     set health of loop-player to max health of loop-player
  334.                     set the loop-player's gamemode to adventure
  335.                     set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  336.                     set loop-player's display name to "%loop-player%"
  337.                     delete {team.%loop-player%}
  338.                     command "/fill -43 21 -9 -47 21 -5 air"
  339.                     command "/fill -11 21 37 -7 21 41 air"
  340.                 else:
  341.                     send "&a試合が終了しました" to loop-player
  342.         else:
  343.             loop all players:
  344.                 if {team.%loop-player%} is "red":
  345.                     send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  346.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  347.                 if {team.%loop-player%} is "blue":
  348.                     send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  349.                     execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358. on place of obsidian:
  359.     if {game} is true:
  360.         set {count} to 40
  361.         set {putobsidian} to true
  362.         loop all players:
  363.             if {team.%loop-player%} is "red":
  364.                 send "&a&l黒曜石が設置された! 50秒間守り切れ!" to loop-player
  365.                 send loop-player title " " with subtitle "&a黒曜石が設置された! 50秒間守り切れ!" for 3 seconds
  366.             if {team.%loop-player%} is "blue":
  367.                 send "&c&l黒曜石が設置された! 50秒以内に破壊せよ!" to loop-player
  368.                 send loop-player title " " with subtitle "&c黒曜石が設置された! 50秒以内に破壊せよ!" for 3 seconds
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377. on break of obsidian:
  378.     if {game} is true:
  379.         set {game} to false
  380.         disable PvP
  381.         loop all players:
  382.             if {team.%loop-player%} is "red":
  383.                 send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
  384.                 send "&9&l敗北..." to loop-player
  385.                 send "&a+2xp" to loop-player
  386.                 add 2 to {xp.%uuid of loop-player%}
  387.                 add 1 to {lose.%uuid of loop-player%}
  388.                 execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  389.             if {team.%loop-player%} is "blue":
  390.                 send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
  391.                 send "&6&l勝利!" to loop-player
  392.                 send "&a+10xp" to loop-player
  393.                 add 10 to {xp.%uuid of loop-player%}
  394.                 add 1 to {victory.%uuid of loop-player%}
  395.                 execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  396.         wait 6 seconds
  397.         loop all players:
  398.             if {team.%loop-player%} is set:
  399.                 close loop-player's inventory
  400.                 command "clear %loop-player%"
  401.                 give grey dye named "&eゲームに参加する" to loop-player
  402.                 teleport the loop-player to {lobby}
  403.                 set rf max hp of loop-player to 20
  404.                 set health of loop-player to max health of loop-player
  405.                 set the loop-player's gamemode to adventure
  406.                 set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  407.                 set loop-player's display name to "%loop-player%"
  408.                 delete {team.%loop-player%}
  409.                 command "/fill -43 21 -9 -47 21 -5 air"
  410.                 command "/fill -11 21 37 -7 21 41 air"
  411.             else:
  412.                 send "&a試合が終了しました" to loop-player
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421. every a second in "world":
  422.     if {game} is true:
  423.         remove 1 from {count}
  424.         if {count} < 0:
  425.             set {game} to false
  426.             disable PvP
  427.             if {putobsidian} is true:
  428.                 loop all players:
  429.                     if {team.%loop-player%} is "red":
  430.                         send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  431.                         send "&6&l勝利!" to loop-player
  432.                         send "&a+10xp" to loop-player
  433.                         add 10 to {xp.%uuid of loop-player%}
  434.                         add 1 to {win.%uuid of loop-player%}
  435.                         execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  436.                     if {team.%loop-player%} is "blue":
  437.                         send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  438.                         send "&9&l敗北..." to loop-player
  439.                         send "&a+2xp" to loop-player
  440.                         add 2 to {xp.%uuid of loop-player%}
  441.                         add 1 to {lose.%uuid of loop-player%}
  442.                         execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  443.                 wait 6 seconds
  444.                 loop all players:
  445.                     if {team.%loop-player%} is set:
  446.                         close loop-player's inventory
  447.                         command "clear %loop-player%"
  448.                         give grey dye named "&eゲームに参加する" to loop-player
  449.                         command "/tp %loop-player% %{cmdlobby}%"
  450.                         set rf max hp of loop-player to 20
  451.                         set health of loop-player to max health of loop-player
  452.                         set the loop-player's gamemode to adventure
  453.                         set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  454.                         set loop-player's display name to "%loop-player%"
  455.                         delete {team.%loop-player%}
  456.                         command "/fill -43 21 -9 -47 21 -5 air"
  457.                         command "/fill -11 21 37 -7 21 41 air"
  458.                     else:
  459.                         send "&a試合が終了しました" to loop-player
  460.             else:
  461.                 loop all players:
  462.                     if {team.%loop-player%} is "red":
  463.                         send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  464.                         send "&9&l敗北..." to loop-player
  465.                         send "&a+2xp" to loop-player
  466.                         add 2 to {xp.%uuid of loop-player%}
  467.                         add 1 to {lose.%uuid of loop-player%}
  468.                         execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  469.                     if {team.%loop-player%} is "blue":
  470.                         send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  471.                         send "&6&l勝利!" to loop-player
  472.                         send "&a+10xp" to loop-player
  473.                         add 10 to {xp.%uuid of loop-player%}
  474.                         add 1 to {win.%uuid of loop-player%}
  475.                         execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  476.                 wait 6 seconds
  477.                 loop all players:
  478.                     if {team.%loop-player%} is set:
  479.                         close loop-player's inventory
  480.                         command "clear %loop-player%"
  481.                         give grey dye named "&eゲームに参加する" to loop-player
  482.                         command "/tp %loop-player% %{cmdlobby}%"
  483.                         set rf max hp of loop-player to 20
  484.                         set health of loop-player to max health of loop-player
  485.                         set the loop-player's gamemode to adventure
  486.                         set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  487.                         set loop-player's display name to "%loop-player%"
  488.                         delete {team.%loop-player%}
  489.                         command "/fill -43 21 -9 -47 21 -5 air"
  490.                         command "/fill -11 21 37 -7 21 41 air"
  491.                     else:
  492.                         send "&a試合が終了しました" to loop-player
  493.         loop all players:
  494.             if {team.%loop-player%} is set:
  495.                 set action bar of loop-player to "&f(残り時間: %{count}%秒)"
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504. command /stats [<offline player>]:
  505.     trigger:
  506.         if arg 1 is not set:
  507.             send "&6-----< &b%player% &6>-----"
  508.             set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  509.             set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  510.             send "  &alevel: &e%{level.%uuid of player%}%" to player
  511.             send "  &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  512.             send " "
  513.             send "  &akill: &e%{kill.%uuid of player%}%" to player
  514.             send "  &adeath: &e%{death.%uuid of player%}%" to player
  515.             send "  &aK/D: &e%{killdeath.%uuid of player%}%" to player
  516.             send "  &awin: &e%{win.%uuid of player%}%" to player
  517.             send "  &alose: &e%{lose.%uuid of player%}%" to player
  518.             send "  &aW/L: &e%{winlose.%uuid of player%}%" to player
  519.         else:
  520.             send "&6-----< &b%arg 1% &6>-----"
  521.             set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  522.             set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  523.             send "  &alevel: &e%{level.%uuid of arg 1%}%" to player
  524.             send "  &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  525.             send " "
  526.             send "  &akill: &e%{kill.%uuid of arg 1%}%" to player
  527.             send "  &adeath: &e%{death.%uuid of arg 1%}%" to player
  528.             send "  &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  529.             send "  &awin: &e%{win.%uuid of arg 1%}%" to player
  530.             send "  &alose: &e%{lose.%uuid of arg 1%}%" to player
  531.             send "  &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
  532.  
  533. on first join:
  534.     set {kill.%uuid of player%} to 0
  535.     set {death.%uuid of player%} to 0
  536.     set {killdeath.%uuid of player%} to 0
  537.     set {win.%uuid of player%} to 0
  538.     set {lose.%uuid of player%} to 0
  539.     set {winlose.%uuid of player%} to 0
  540.     set {level.%uuid of player%} to 1
  541.     set {xp.%uuid of player%} to 0
  542.     set {needxp.%uuid of player%} to 10
  543.     set {prefix.%uuid of player%} to ""
  544.     set {suffix.%uuid of player%} to ""
  545.  
  546. on any movement:
  547.     if {xp.%uuid of player%} >= {needxp.%uuid of player%}:
  548.         set {xp.%uuid of player%} to {xp.%uuid of player%} - {needxp.%uuid of player%}
  549.         add 1 to {level.%uuid of player%}
  550.         set {needxp.%uuid of player%} to {needxp.%uuid of player%} * 1.5
  551.         send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of player%}%"
  552.         set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
  553.         set tab header to "&7-- &d&lTeamBowPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  554.  
  555. on join:
  556.     wait 3 ticks
  557.     set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
  558.     set tab header to "&7-- &d&lTeamBowPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  559.     command "/clear %player%"
  560.     give grey dye named "&eゲームに参加する" to player
  561.     command "/tp %player% %{cmdlobby}%"
  562.     set rf max hp of player to 20
  563.     set health of player to max health of player
  564.     command "/gamemode 2 %player%"
  565.     send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  566.     send "                              &f&lTeamBowPvP" to player
  567.     send " " to player
  568.     send "              &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
  569.     send "                    &e&l攻撃側は特定の場所に黒曜石を置き、" to player
  570.     send "                 &e&lそれを壊されないよう守る必要があります。" to player
  571.     send "             &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
  572.     send "                     &e&lもし置かれても、破壊が可能です。" to player
  573.     send " " to player
  574.     send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  575.  
  576. on chat:
  577.     cancel event
  578.     if {mutelist::*} contains player:
  579.         send "&cあなたはミュートされているため、発言することができません。" to player
  580.         stop
  581.     else if {spam.%player's UUID%} is "%message%":
  582.         send "&6-----------------------------" to player
  583.         send "&c&l同じメッセージを送信できません" to player
  584.         send "&6-----------------------------" to player
  585.         stop
  586.     else if {team.%player%} is set:
  587.         set {spam.%player's UUID%} to "%message%"
  588.         broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%{teamchat.%player%}%%player%%{suffix.%uuid of player%}%&e》&r%message%"
  589.     else:
  590.         set {spam.%player's UUID%} to "%message%"
  591.         broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%&e》&r%message%"
  592.  
  593. command /chat <text> <offline player> <text>:
  594.     permission: skript.admin
  595.     usage: /chat <prefix|suffix|mute|unmute> <player> <text>
  596.     trigger:
  597.         if arg 1 is "prefix":
  598.             set {prefix.%uuid of arg 2%} to coloured arg 3
  599.             send "&b%arg 2%さんのprefixを「&r%{prefix.%uuid of arg 2%}%&b」に変更しました。"
  600.             stop
  601.         if arg 1 is "suffix":
  602.             set {suffix.%uuid of arg 2%} to coloured arg 3
  603.             send "&b%arg 2%さんのsuffixを&r「%{suffix.%uuid of arg 2%}%&b」に変更しました。"
  604.             stop
  605.         if arg 1 is "mute":
  606.             if {mutelist::*} contains arg 2:
  607.                 send "&c%arg 2%さんはすでにミュートされています。"
  608.                 stop
  609.             send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  610.             send "&e理由:%coloured arg 3%" to ops
  611.             add arg 2 to {mutelist::*}
  612.             stop
  613.         if arg 1 is "unmute":
  614.             if {mutelist::*} contains arg 2:
  615.                 send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  616.                 send "&a理由:%coloured arg 3%" to ops
  617.                 remove arg 2 from {mutelist::*}
  618.                 stop
  619.             send "&c%arg 2%さんはミュートされていません。"
  620.             stop
  621.  
  622. command /mutelist [<offline player>]:
  623.     permission: skript.admin
  624.     trigger:
  625.         if arg 1 is not set:
  626.             send "&d次のプレイヤーがミュートされています:"
  627.             send "%{mutelist::*}%"
  628.             stop
  629.         if {mutelist::*} contains arg 1:
  630.             send "&d対象のプレイヤーはミュートされています。"
  631.             stop
  632.         send "&b対象のプレイヤーはミュートされていません。"
  633.  
  634. on click:
  635.     if player is holding lime dye named "&cゲームを抜ける":
  636.         remove lime dye named "&cゲームを抜ける" from player
  637.         set {join.%player%} to false
  638.         send "&cゲームを抜けました"
  639.         wait 5 ticks
  640.         give grey dye named "&eゲームに参加する" to player
  641.  
  642. on click:
  643.     if player is holding grey dye named "&eゲームに参加する":
  644.         remove grey dye named "&eゲームに参加する" from player
  645.         set {join.%player%} to true
  646.         send "&eゲームに参加しました" to player
  647.         wait 5 ticks
  648.         give lime dye named "&cゲームを抜ける" to player
  649.  
  650. on hunger bar change:
  651.     set the player's food level to 10
  652.  
  653. on inventory click:
  654.     if {game} is true:
  655.         if {team.%player%} is set:
  656.             if clicked slot is 39:
  657.                 cancel event
  658.  
  659. command /pd delete [<offline player>]:
  660.     permission: skript.admin
  661.     trigger:
  662.         set {kill.%uuid of arg 1%} to 0
  663.         set {death.%uuid of arg 1%} to 0
  664.         set {killdeath.%uuid of arg 1%} to 0
  665.         set {win.%uuid of arg 1%} to 0
  666.         set {lose.%uuid of arg 1%} to 0
  667.         set {winlose.%uuid of arg 1%} to 0
  668.         set {level.%uuid of arg 1%} to 1
  669.         set {xp.%uuid of arg 1%} to 0
  670.         set {needxp.%uuid of arg 1%} to 10
  671.         set {prefix.%uuid of arg 1%} to ""
  672.         set {suffix.%uuid of arg 1%} to ""
  673.  
  674. command /dye:
  675.     permission: skript.admin
  676.     trigger:
  677.         give grey dye named "&eゲームに参加する" to 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