SHARE
TWEET

Untitled

Itsyuumello2 Dec 3rd, 2019 (edited) 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /menu:
  2.     trigger:
  3.         if {lobby.%player%} is set:
  4.             open chest with 3 row named "&amenu" to player
  5.             set slot 11 of player's current inventory to nether star named "&aゲームに参加 &7(left click)"
  6.             set slot 13 of player's current inventory to emerald named "&aショップ &7(left click)"
  7.             set slot 15 of player's current inventory to chest named "&aコスチューム &7(left click)"
  8.             if {queue.%player%} is set:
  9.                 open chest with 3 row named "&amenu" to player
  10.                 set slot 11 of player's current inventory to redstone named "&cゲームから退出 &7(left click)"
  11.                 set slot 13 of player's current inventory to emerald named "&aショップ &7(left click)"
  12.                 set slot 15 of player's current inventory to chest named "&aコスチューム &7(left click)"
  13.             stop
  14.         else:
  15.             send "&cロビーにいる時のみ開くことができます。"
  16.  
  17. on inventory click:
  18.     if name of player's current inventory contain "&amenu":
  19.         cancel event
  20.         if name of clicked item is "&aゲームに参加 &7(left click)":
  21.             if {lobby.%player%} is set:
  22.                 send "&aゲームに参加しました!"
  23.                 execute console command "/playsound block.note.hat master %player% ~ ~ ~ 2 1 1"
  24.                 set slot 11 of player's current inventory to redstone named "&cゲームから退出 &7(left click)"
  25.                 wait 1 seconds
  26.                 set {queue.%player%} to player
  27.                 add 1 to {queue.%player%}
  28.                 stop
  29.             else:
  30.                 send "&c参加できませんでした。"
  31.         if name of clicked item  is "&cゲームから退出 &7(left click)":
  32.             if {queue.%player%} is set:
  33.                 send "&cゲームから退出しました。"
  34.                 execute console command "/playsound block.note.bass master %player% ~ ~ ~ 2 1 1"
  35.                 set slot 11 of player's current inventory to nether star named "&aゲームに参加 &7(left click)"
  36.                 remove 1 from {queue.%player%}
  37.                 delete {queue.%player%}
  38.                 stop
  39.             else:
  40.                 send "&c退出できませんでした。"
  41. command /check:
  42.     trigger:
  43.         send "Queue: %{queue.%player%}%"
  44.  
  45. command /resetscore <player> <text> <int>:
  46.     trigger:
  47.         if arg-2 is "queue":
  48.             set {queue.%player%} to arg-3
  49.  
  50. command /removescore <player> <text>:
  51.     trigger:
  52.         if arg-2 is "queue":
  53.             delete {queue.%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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top