Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. on right click on entity:
  2. if name of entity is "&1Buycraft":
  3. execute player command "/buy"
  4.  
  5. command /buy [<text>] :
  6. trigger:
  7. if arg-1 is not set:
  8. wait 3 ticks
  9. format slot 11 of player with book named "&3&lRanks" to close then run [execute player command "/buy Rank"]
  10. format slot 13 of player with book named "&3&lKits" to close then run [execute player command "/buy Kits"]
  11. format slot 15 of player with book named "&3&lAndet" to close then run [execute player command "/buy Andet"]
  12. else:
  13. if arg-1 is "Rank":
  14. wait 4 ticks
  15. open chest with 3 rows named "Rank" to player
  16. format slot 11 of player with book named "&1Rank" with lore "&8Pris" to close then run [execute player command "/buy Rank1"]
  17. format slot 12 of player with book named "&1Rank" with lore "&8Pris" to close then run [execute player command "/buy Rank2"]
  18. format slot 13 of player with book named "&1Rank" with lore "&8Pris" to close then run [execute player command "/buy Rank3"]
  19. format slot 22 of player with glowing red clay named "&cTilbage" to close then run [execute player command "/buy"]
  20. else:
  21. if arg-1 is "Rank1":
  22. broadcast "&f"
  23. broadcast "&8[&e&lBuycraft&8] &f%command sender% vil gerne købe &6%arg-1% &ffor &a?? EMS"
  24. broadcast "&f"
  25. if arg-1 is "Rank2":
  26. broadcast "&f"
  27. broadcast "&8[&e&lBuycraft&8] &f%command sender% vil gerne købe &6%arg-1% &ffor &a?? EMS"
  28. broadcast "&f"
  29. if arg-1 is "Rank3":
  30. broadcast "&f"
  31. broadcast "&8[&3&lBuycraft&8] &f%command sender% vil gerne købe &6%arg-1% &ffor &a?? EMS"
  32. broadcast "&f"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement