SHARE
TWEET

栄光の架橋

sniperwolf1130 Aug 22nd, 2019 (edited) 250 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on join:
  2.  teleport player to {tp.lobby}
  3.  remove all items from player's inventory
  4.  set the join message to "<gold><bold>[栄光の架橋]%player%さんがサーバーに参加しました!"
  5.  execute command "/tabsetting %player% 0"
  6.  delete {shot.%player%}
  7.  
  8. on quit:
  9.  set the quit message to "<gold><bold>[栄光の架橋]%player%さんがサーバーから退出しました"
  10.  
  11. on first join:
  12.  teleport player to {tp.tuto}
  13.  
  14. on rightclick with stick:
  15.  name of player's tool contains "<red><bold>レーザーポインター":
  16.   cancel event
  17.   set {_num} to 0.5
  18.   set {_Particle} to location of the block {_num} meter in front of player's head
  19.   loop 50 times:
  20.    show 10 redstone particles at {_Particle} offset by 0, 0, 0
  21.    set {_num} to {_num} + 0.5
  22.    set {_Particle} to location of the block {_num} meter infront of player's head
  23.    if the block {_num} meter infront of player's head is not air:
  24.     stop loop
  25.  
  26. on break of red wool:
  27.  if {shot.%player%} is "blue":
  28.   cancel event
  29.  
  30. on break of blue wool:
  31.  if {shot.%player%} is "red":
  32.   cancel event
  33.  
  34. on shoot:
  35.  set {plx} to floor(x-coordinate of location of shooter)
  36.  set {ply} to floor(y-coordinate of location of shooter)
  37.  set {plz} to floor(z-coordinate of location of shooter)
  38.  {plx} is more than -23
  39.  {plx} is less than 35
  40.  {ply} is more than 68
  41.  {ply} is less than 92
  42.  {plz} is more than -30
  43.  {plz} is less than -24
  44.  cancel event
  45.  
  46. command /vip <player>:
  47.  permission: op
  48.  trigger:
  49.   set {vip.%arg%} to 1
  50.  
  51. command /nonvip <player>:
  52.  permission: op
  53.  trigger:
  54.   delete {vip.%arg%}
  55.  
  56. command /close:
  57.  permission: op
  58.  trigger:
  59.   execute command "/fill 85 93 -27 85 91 -26 minecraft:glass"
  60.   execute command "/fill 85 93 -23 85 91 -22 minecraft:glass"
  61.  
  62. command /opend:
  63.  permission: op
  64.  trigger:
  65.   execute command "/fill 85 93 -27 85 91 -26 minecraft:air"
  66.   execute command "/fill 85 93 -23 85 91 -22 minecraft:air"
  67.  
  68. command /settuto:
  69.  permission: op
  70.  trigger:
  71.   set {tp.lobby} to location of player
  72.   message "チュートリアルの場所を%{tp.lobby}%に設定しました"
  73.  
  74. command /setlob:
  75.  permission: op
  76.  trigger:
  77.   set {tp.lobby} to location of player
  78.   message "ロビーの場所を%{tp.lobby}%に設定しました"
  79.  
  80. command /setred:
  81.  permission: op
  82.  trigger:
  83.   set {tp.red} to location of player
  84.   message "赤チームの場所を%{tp.red}%に設定しました"
  85.  
  86. command /setblue:
  87.  permission: op
  88.  trigger:
  89.   set {tp.blue} to location of player
  90.   message "青チームの場所を%{tp.blue}%に設定しました"
  91.  
  92. command /setshot:
  93.  permission: op
  94.  trigger:
  95.   set {tp.shot} to location of player
  96.   message "射撃主の場所を%{tp.shot}%に設定しました"
  97.  
  98. command /setarea1:
  99.  permission: op
  100.  trigger:
  101.   set {area1} to location of player
  102.   message "エリア1の場所を%{area1}%に設定しました"
  103.  
  104. command /setarea2:
  105.  permission: op
  106.  trigger:
  107.   set {area2} to location of player
  108.   message "エリア2の場所を%{area2}%に設定しました"
  109.  
  110. command /tabsetting <player> <int>:
  111.     permission: owner.sk
  112.     trigger:
  113.         set {tab.%arg 1%} to arg 2
  114.  
  115. command /pteam <player> [<text>]:
  116.  permission: op
  117.  trigger:
  118.   if arg 2 is "red":
  119.    set {shot.%arg 1%} to arg 2
  120.    execute command "/tabsetting %arg 1% 1"
  121.   else if arg 2 is "blue":
  122.    set {shot.%arg 1%} to arg 2
  123.    execute command "/tabsetting %arg 1% 2"
  124.  
  125. on walking on red wool:
  126.  if {shot.%player%} is "blue":
  127.   if {tp.%player%} is set:
  128.    teleport player to {tp.%player%}
  129.   else:
  130.    teleport player to {tp.blue}
  131.  
  132. on walking on blue wool:
  133.  if {shot.%player%} is "red":
  134.   if {tp.%player%} is set:
  135.    teleport player to {tp.%player%}
  136.   else:
  137.    teleport player to {tp.red}
  138.  
  139. on walking on magenta concrete:
  140.  if {shot.%player%} is "red":
  141.   if {tp.%player%} is set:
  142.    teleport player to {tp.%player%}
  143.   else:
  144.    teleport player to {tp.red}
  145.  else if {shot.%player%} is "blue":
  146.   if {tp.%player%} is set:
  147.    teleport player to {tp.%player%}
  148.   else:
  149.    teleport player to {tp.blue}
  150.  
  151. on walking on red concrete:
  152.  if {state} is 1:
  153.   if {shot.%player%} is "blue":
  154.    teleport player to {tp.blue}
  155.    set {point.blue} to {point.blue} + 1
  156.    broadcast "&b青&6チームの%player%さんがゴールしました!"
  157.    execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 11"
  158.  
  159. on walking on blue concrete:
  160.  if {state} is 1:
  161.   if {shot.%player%} is "red":
  162.    teleport player to {tp.red}
  163.    set {point.red} to {point.red} + 1
  164.    broadcast "&c赤&6チームの%player%さんがゴールしました!"
  165.    execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 14"
  166.  
  167. on walking on light blue glass:
  168.  if {game} is "eiko":
  169.   if {shot.%player%} is "red":
  170.    execute command "/tp %player% -19 85 -27"
  171.  else if {game} is "paint":
  172.   execute command "/tp %player% -16 75 -13"
  173.  
  174. on walking on blue stained glass:
  175.  if {shot.%player%} is "red":
  176.   execute command "/tp %player% -16 86 -13"
  177.  
  178. on walking on pink stained glass:
  179.  if {game} is "eiko":
  180.   if {shot.%player%} is "blue":
  181.    execute command "/tp %player% 31 85 -27"
  182.  else if {game} is "paint":
  183.   execute command "/tp %player% 28 75 -13"
  184.  
  185. on walking on red glass block:
  186.  if {shot.%player%} is "blue":
  187.   execute command "/tp %player% 28 86 -13"
  188.  
  189. on walking on orange glass:
  190.  if {shot.%player%} is "blue":
  191.   execute command "/tp %player% 28 75 -13"
  192.  
  193. on walking on yellow glass:
  194.  if {game} is "eiko":
  195.   if {shot.%player%} is "blue":
  196.    execute command "/tp %player% 30 75 -27"
  197.  else if {game} is "paint":
  198.   execute command "/tp %player% 28 86 -13"
  199.  
  200. on walking on dark green glass:
  201.  if {shot.%player%} is "red":
  202.   execute command "/tp %player% -16 75 -13"
  203.  
  204. on walking on light green stained glass block:
  205.  if {game} is "eiko":
  206.   if {shot.%player%} is "red":
  207.    execute command "/tp %player% -19 75 -27"
  208.  else if {game} is "paint":
  209.   execute command "/tp %player% -16 86 -13"
  210.  
  211. on walking on light blue wool:
  212.  if {state} is 0:
  213.   if {shot.%player%} is not "blue":
  214.    execute command "/pteam %player% blue"
  215.    send "&6あなたは&b青&6チームです!" to player
  216.  
  217. on walking on pink wool block:
  218.  if {state} is 0:
  219.   if {shot.%player%} is not "red":
  220.    execute command "/pteam %player% red"
  221.    send "&6あなたは&c赤&6チームです!" to player
  222.  
  223. on walking on emerald block:
  224.  if {shot.%player%} is "red":
  225.   set {tp.%player%} to location of player
  226.   message "&e&lスポーンポイントを設定しました"
  227.  
  228. on walking on diamond block:
  229.  if {shot.%player%} is "blue":
  230.   set {tp.%player%} to location of player
  231.   message "&e&lスポーンポイントを設定しました"
  232.  
  233. command /cc:
  234.  permission: op
  235.  trigger:
  236.   execute command "/fill 28 70 -26 -16 89 -28 air"
  237.  
  238. command /cc2:
  239.  permission: op
  240.  trigger:
  241.   execute command "/fill 82 100 -4 -71 94 -4 air"
  242.  
  243. options:
  244.  red: red wool
  245.  blue: blue wool
  246.  
  247. on projectile hit:
  248.  wait 1 tick
  249.  kill event-entity
  250.  set {_hitx} to floor(x-coordinate of location of projectile)
  251.  set {_hity} to floor(y-coordinate of location of projectile)
  252.  set {_hitz} to floor(z-coordinate of location of projectile)
  253.  set {_hitpoint} to location of projectile
  254.  set {_block} to the block at location 1 in front of the projectile
  255.  if {state} is 0:
  256.   {_hitx} is more than 71
  257.   {_hitx} is less than 82
  258.   {_hity} is more than 90
  259.   {_hity} is less than 100
  260.   {_hitz} is more than -7
  261.   {_hitz} is less than -3
  262.   if {shot.%shooter%} is "red":
  263.    loop blocks in radius 1 around projectile:
  264.     if loop-block is blue wool:
  265.      set loop-block to air
  266.      stop
  267.     else if {_block} is air:
  268.      set the block at {_block} to {@red}
  269.     else:
  270.      set block at {_hitpoint} to {@red}
  271.  
  272.   else if {shot.%shooter%} is "blue":
  273.    loop blocks in radius 1 around projectile:
  274.     if loop-block is red wool block:
  275.      set loop-block to air
  276.      stop
  277.     else if {_block} is air:
  278.      set the block at {_block} to {@blue}
  279.     else:
  280.      set block at {_hitpoint} to {@blue}
  281.  
  282.  else if {state} is 1:
  283.   {_hitx} is more than -17
  284.   {_hitx} is less than 29
  285.   {_hity} is more than 69
  286.   {_hity} is less than 90
  287.   {_hitz} is more than -29
  288.   {_hitz} is less than -25
  289.   if {shot.%shooter%} is "red":
  290.    loop blocks in radius 1 around projectile:
  291.     if loop-block is blue wool:
  292.      set loop-block to air
  293.      stop
  294.    if {_block} is air:
  295.     set the block at {_block} to {@red}
  296.    else:
  297.     set block at {_hitpoint} to {@red}
  298.  
  299.   else if {shot.%shooter%} is "blue":
  300.    loop blocks in radius 1 around projectile:
  301.     if loop-block is red wool block:
  302.      set loop-block to air
  303.      stop
  304.    if {_block} is air:
  305.     set the block at {_block} to {@blue}
  306.    else:
  307.     set block at {_hitpoint} to {@blue}
  308.  
  309. command /team:
  310.  trigger:
  311.   set {red} and {blue} to 0
  312.   loop all players:
  313.    if {red}  is more than {blue}:
  314.     add 1 to {blue}
  315.     set {shot.%loop-player%} to "blue"
  316.     send "&6あなたは&b青&6チームです!" to loop-player
  317.     execute command "/tabsetting %loop-player% 2"
  318.    else:
  319.     add 1 to {red}
  320.     set {shot.%loop-player%} to "red"
  321.     send "&6あなたは&c赤&6チームです!" to loop-player
  322.     execute command "/tabsetting %loop-player% 1"
  323.    wait a tick
  324.  
  325. every 2 seconds:
  326.  loop all players:
  327.   set loop-player's food level to 10
  328.  
  329.   if {tab.%loop-player%} is 0:
  330.    if {vip.%loop-player%} is 1:
  331.     set loop-player's tab list name to "<light green>[VIP]<white>%loop-player%"
  332.    else:
  333.     set loop-player's tab list name to "<white>%loop-player%"
  334.  
  335.   else if {tab.%loop-player%} is 1:
  336.    if {vip.%loop-player%} is 1:
  337.     set loop-player's tab list name to "<light green>[VIP]<red>%loop-player%"
  338.    else:
  339.     set loop-player's tab list name to "<red>%loop-player%"
  340.  
  341.   else if {tab.%loop-player%} is 2:
  342.    if {vip.%loop-player%} is 1:
  343.     set loop-player's tab list name to "<light green>[VIP]<blue>%loop-player%"
  344.    else:
  345.     set loop-player's tab list name to "<blue>%loop-player%"
  346.  
  347.   if {state} is 1:
  348.    if {game} is "eiko":
  349.     if {shot.%loop-player%} is "red" or "blue":
  350.      if {vip.%loop-player%} is 1:
  351.       execute command "/give %loop-player% minecraft:snowball 1 0"
  352.  
  353. every 180 seconds:
  354.  broadcast "<gold><bold>[定期]<light green><bold>VIP<gold><bold>になると、試合中に雪玉が支給されます。"
  355.  wait 90 seconds
  356.  broadcast "<gold><bold>[定期]要望はDISCORDの要望チャンネルで言ってください。"
  357.  wait 90 seconds
  358.  
  359. on death:
  360.  set player's health to player's max health
  361.  
  362. command /eikostop:
  363.  permission: op
  364.  trigger:
  365.   broadcast "&6&lゲームを終了します"
  366.   set {state} to 0
  367.   loop all players:
  368.    teleport loop-player to {tp.lobby}
  369.    execute command "/gamemode 2 %loop-player%"
  370.    remove all items from loop-player's inventory
  371.    delete {shot.%loop-player%}
  372.    delete {tp.%loop-player%}
  373.    execute command "/tabsetting %loop-player% 0"
  374.   execute command "/opend"
  375.   if {game} is "eiko":
  376.    broadcast "&c赤&6チームの得点は、&c%{point.red}%点です!"
  377.    broadcast "&b青&6チームの得点は、&b%{point.blue}%点です!"
  378.    if {point.red} is more than {point.blue}:
  379.     broadcast "&c赤&6チームの方が得点が多かったため、&c赤&6チームの勝利!"
  380.    else if {point.red} is less than {point.blue}:
  381.     broadcast "&b青&6チームの方が得点が多かったため、&b青&6チームの勝利!"
  382.    else:
  383.     broadcast "&6両チームとも同じ点数だったため、引き分け!"
  384.   else if {game} is "paint":
  385.    loop blocks within {area1} to {area2}:
  386.     if loop-block is red wool block:
  387.      set {point.red} to {point.red} + 1
  388.     else if loop-block is blue wool:
  389.      set {point.blue} to {point.blue} + 1
  390.    broadcast "&c赤&6チームのブロック数は、&c%{point.red}%個です!"
  391.    broadcast "&b青&6チームのブロック数は、&b%{point.blue}%個です!"
  392.    if {point.red} is more than {point.blue}:
  393.     broadcast "&c赤&6チームの方がブロック数が多かったため、&c赤&6チームの勝利!"
  394.    else if {point.red} is less than {point.blue}:
  395.     broadcast "&b青&6チームの方がブロック数が多かったため、&b青&6チームの勝利!"
  396.    else:
  397.     broadcast "&6両チームとも同じブロック数だったため、引き分け!"
  398.   delete {point.red}
  399.   delete {point.blue}
  400.   delete {game}
  401.  
  402.  
  403.  
  404. command /eiko [<text>] [<int>]:
  405.  permission: op
  406.  trigger:
  407.   broadcast "&6&lゲームを始めます!"
  408.   broadcast "&6&l制限時間: %arg 2%秒"
  409.   delete {point.red}
  410.   delete {point.blue}
  411.   set {point.red} to 0
  412.   set {point.blue} to 0
  413.   set {state} to 1
  414.   execute command "/count %arg 2%"
  415.   if arg 1 is "eiko":
  416.    broadcast "&6&lゲームモード: &c&l栄&b&l光&c&lの&b&l架&c&l橋"
  417.    set {game} to "eiko"
  418.    loop all players:
  419.     remove all items from loop-player's inventory
  420.     if {shot.%loop-player%} is "red":
  421.      teleport loop-player to {tp.red}
  422.      execute command "/gamemode 2 %loop-player%"
  423.      execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  424.      execute command "/give %loop-player% minecraft:arrow 1 0"
  425.      execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
  426.      execute command "/give %loop-player% minecraft:stick 1 0 {display:{Name:""&4&lレーザーポインター""}}"
  427.      if {vip.%player%} is 1:
  428.       execute command "/give %loop-player% minecraft:snowball 16 0"
  429.     else if {shot.%loop-player%} is "blue":
  430.      teleport loop-player to {tp.blue}
  431.      execute command "/gamemode 2 %loop-player%"
  432.      execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  433.      execute command "/give %loop-player% minecraft:arrow 1 0"
  434.      execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
  435.      execute command "/give %loop-player% minecraft:stick 1 0 {display:{Name:""&4&lレーザーポインター""}}"
  436.      if {vip.%player%} is 1:
  437.       execute command "/give %loop-player% minecraft:snowball 16 0"
  438.   else if arg 1 is "paint":
  439.    broadcast "&6&lゲームモード: &c&lP&b&lA&c&lI&b&lN&c&lT&b&lI&c&lA"
  440.    set {game} to "paint"
  441.    loop all players:
  442.     if {shot.%loop-player%} is "red" or "blue":
  443.      teleport loop-player to {tp.shot}
  444.     remove all items from loop-player's inventory
  445.     if {shot.%loop-player%} is "red":
  446.      execute command "/gamemode 2 %loop-player%"
  447.      execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  448.      execute command "/give %loop-player% minecraft:arrow 1 0"
  449.     else if {shot.%loop-player%} is "blue":
  450.      execute command "/gamemode 2 %loop-player%"
  451.      execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  452.      execute command "/give %loop-player% minecraft:arrow 1 0"
  453.  
  454. on chat:
  455.  if {state} is 1:
  456.   if message contains "$":
  457.    if {shot.%player%} is "red":
  458.     cancel event
  459.     broadcast "&c%player%: %message%"
  460.    else if {shot.%player%} is "blue":
  461.     cancel event
  462.     broadcast "&b%player%: %message%"
  463.   else:
  464.    loop all players:
  465.     if {shot.%player%} is "red":
  466.      if {shot.%loop-player%} is "red":
  467.       cancel event
  468.       send "&c%player%: %message%" to loop-player
  469.     else if {shot.%player%} is "blue":
  470.      if {shot.%loop-player%} is "blue":
  471.       cancel event
  472.       send "&b%player%: %message%" to loop-player
  473.  
  474. command /tt <player>:
  475.  permission: op
  476.  trigger:
  477.   send "%arg%の値は%{shot.%arg%}%です"
  478.  
  479. command /count <int>:
  480.  permission: op
  481.  trigger:
  482.   set {_countdown} to arg
  483.   loop arg times:
  484.    wait 1 seconds
  485.    set {_countdown} to {_countdown} - 1
  486.    set {time} to {_countdown}
  487.    if {game} is "eiko":
  488.     execute command "/title @a actionbar {""text"":""&e&lゲームモード: 栄光の架橋 残り時間:%{time}% &c&l%{point.red}% &7&l- &b&l%{point.blue}%""}"
  489.    else if {game} is "paint":
  490.     execute command "/title @a actionbar {""text"":""&e&lゲームモード: PAINTIA 残り時間:%{time}%""}"
  491.   execute command "/title @a actionbar {""text"":""&6&l終了!""}"
  492.   execute command "/eikostop"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top