Advertisement
Guest User

Shop

a guest
Jul 25th, 2020
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. command /shop:
  2. trigger:
  3. open virtual chest with 6 rows named "&6Shop" to player
  4. format gui slot 0,1,2,3,4,5,6,7,8,9,17,18,26,27,35,36,44,45,46,47,48,49,50,51,52, and 53 of player with black stained glass pane named "&f"
  5. format gui slot 20 of player with unbreakable Diamond Sword named "&4PvP" to run function PvP(player)
  6.  
  7. function PvP(p: player):
  8. open virtual chest with 6 rows named "&4PvP &bShop" to {_p}
  9. format gui slot 10 of {_p} with stone sword named "&bTier 1 Swords" to run:
  10. if {balance::%{_p}%} >= 50:
  11. subtract 50 from {player's balance::%{_p}%}
  12. give {_p} 1 of stone sword named "&bTier 1 Sword"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement