Facebook
From MrSandKing, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 141
  1. command /zestawy [<text>]:
  2.         trigger:
  3.                 if arg isn't set:
  4.                         open chest inventory with 2 rows named "&b&lZestawy" to player
  5.                         play sound "block.chest.open" with volume 1 and pitch 1 at player for player
  6.                         loop 18 times:
  7.                                 set slot loop-number - 1 of current inventory of player to blue glass pane named ""
  8.                         set slot 2 of current inventory of player to stone pickaxe named "&a&lGracz" with lore "&7Kliknij, aby odebrac zestaw." and "&7Zestaw mozesz odebrac co &c24 godziny"
  9.                         set slot 4 of current inventory of player to diamond pickaxe named "&e&lVIP" with lore "&7Kliknij, aby odebrac zestaw." and "&7Zestaw mozesz odebrac co &c48 godzin"
  10.                         set slot 6 of current inventory of player to blaze rod named "&b&lF&6&lB Coin" with lore "&7Kliknij, aby odebrac zestaw." and "&7Zestaw mozesz odebrac co &c48 godzin"
  11.                         stop
  12.                 else:
  13.                         send "&b&lFree&6&lBuild &7&l>> &cPoprawne uzycie &a/zestawy"
  14.                
  15. on inventory click:
  16.         if inventory name of current inventory of player is "&b&lZestawy":
  17.                 if clicked slot is 2:
  18.                         set {_czas} to difference between {zestaw::gracz::%player%} and now
  19.                         if {_czas} is less than 24 hours:
  20.                                 play sound "entity.blaze.death" with volume 1 and pitch 1 at player for player
  21.                                 send "&b&lFree&6&lBuild &7&l>> &cAby odebrac ten zestaw musisz poczekac: %{_}%&a%difference between %{_hours}% and {_czas}%"
  22.                         else:
  23.                                 play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
  24.                                 close player's inventory
  25.                                 give 1 stone sword to player
  26.                                 give 1 stone pickaxe to player
  27.                                 give 1 stone axe to player
  28.                                 give 1 stone shovel to player
  29.                                 give 32 steak to player
  30.                                 set {zestaw::gracz::%player%} to now
  31.                                 cancel event
  32.                 if clicked slot is 4:
  33.                         play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
  34.                         close player's inventory
  35.                         cancel event
  36.                 if clicked slot is 6:
  37.                         play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at player for player
  38.                         close player's inventory
  39.                         cancel event
  40.                 else:
  41.                         cancel event