Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. command /prestige:
  2. trigger:
  3. if {rank.%player%} is "&8[&bZ&8]":
  4. if balance of player is higher than or equal to {prestigep.%player%}:
  5. open chest with 1 rows named "&aConfirm" to player
  6. set {_rand} to random integer between 0 and 8
  7. wait 1 tick
  8. format slot 0 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  9. format slot 1 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  10. format slot 2 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  11. format slot 3 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  12. format slot 4 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  13. format slot 5 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  14. format slot 6 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  15. format slot 7 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  16. format slot 8 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  17. wait 1 tick
  18. format slot {_rand} of player with green stained glass pane named "&a&lConfirm" with lore "&8Right" to close then run [prestige(player)]
  19. else:
  20. send "&b&lXPnet &8ยป &3You are not ready for a prestige!"
  21.  
  22. function prestige(p: player):
  23. set balance of {_p} to 0
  24. if {prestige.%{_p}%} is "&8[&9%{prestigen.%{_p}%}%*&8]":
  25. add 1 to {prestigen.%{_p}%}
  26. set {prestige.%{_p}%} to "&8[&9%{prestigen.%{_p}%}%*&8]"
  27. set {sstone.%{_p}%} to 2
  28. set {scoal.%{_p}%} to 10
  29. set {siron_ingot.%{_p}%} to 0
  30. set {siron_block.%{_p}%} to 0
  31. set {sgold_ingot.%{_p}%} to 0
  32. set {sgold_block.%{_p}%} to 0
  33. set {sdiamond.%{_p}%} to 0
  34. set {sdiamond_block.%{_p}%} to 0
  35. set {sobsidian.%{_p}%} to 0
  36. set {semerald_block.%{_p}%} to 0
  37. set {sbedrock.%{_p}%} to 0
  38. set {rank.%{_p}%} to "&8[&bA&8]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement