Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /prestige:
- trigger:
- if {rank.%player%} is "&8[&bZ&8]":
- if balance of player is higher than or equal to {prestigep.%player%}:
- open chest with 1 rows named "&aConfirm" to player
- set {_rand} to random integer between 0 and 8
- wait 1 tick
- format slot 0 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
- format slot 1 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
- format slot 2 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
- format slot 3 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
- format slot 4 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
- format slot 5 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
- format slot 6 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
- format slot 7 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
- format slot 8 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
- wait 1 tick
- format slot {_rand} of player with green stained glass pane named "&a&lConfirm" with lore "&8Right" to close then run [prestige(player)]
- else:
- send "&b&lXPnet &8ยป &3You are not ready for a prestige!"
- function prestige(p: player):
- set balance of {_p} to 0
- if {prestige.%{_p}%} is "&8[&9%{prestigen.%{_p}%}%*&8]":
- add 1 to {prestigen.%{_p}%}
- set {prestige.%{_p}%} to "&8[&9%{prestigen.%{_p}%}%*&8]"
- set {sstone.%{_p}%} to 2
- set {scoal.%{_p}%} to 10
- set {siron_ingot.%{_p}%} to 0
- set {siron_block.%{_p}%} to 0
- set {sgold_ingot.%{_p}%} to 0
- set {sgold_block.%{_p}%} to 0
- set {sdiamond.%{_p}%} to 0
- set {sdiamond_block.%{_p}%} to 0
- set {sobsidian.%{_p}%} to 0
- set {semerald_block.%{_p}%} to 0
- set {sbedrock.%{_p}%} to 0
- set {rank.%{_p}%} to "&8[&bA&8]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement