Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {rank.%player%} = "&8[&bA&8]"
- {prestige.%player%} = "&8[&90*&8]"
- {prestigen.%player%} = 0
- {sellamount.%player%} = 0
- {multiplier.%player%} = 1
- {prestigep.%player%} = 1000000
- #--/Other Stuff\--
- {cobblestone.%player%} = 0
- {stone.%player%} = 0
- {coal.%player%} = 0
- {iron_ingot.%player%} = 0
- {iron_block.%player%} = 0
- {gold_ingot.%player%} = 0
- {gold_block.%player%} = 0
- {diamond.%player%} = 0
- {diamond_block.%player%} = 0
- {obsidian.%player%} = 0
- {emerald_block.%player%} = 0
- {bedrock.%player%} = 0
- #--/Sell Price\--
- {sstone.%player%} = 2
- {scoal.%player%} = 10
- {siron_ingot.%player%} = 0
- {siron_block.%player%} = 0
- {sgold_ingot.%player%} = 0
- {sgold_block.%player%} = 0
- {sdiamond.%player%} = 0
- {sdiamond_block.%player%} = 0
- {sobsidian.%player%} = 0
- {semerald_block.%player%} = 0
- {sbedrock.%player%} = 0
- #--/Boss Bar\--
- {cooldown.%player%} = 300
- {coold.%player%} = 300
- {abilityt.%player%} = false
- #--/Achievements\--
- {0.%player%} = 0
- {1.%player%} = 0
- {2.%player%} = 0
- {3.%player%} = 0
- {4.%player%} = 0
- {5.%player%} = 0
- {6.%player%} = 0
- {7.%player%} = 0
- {8.%player%} = 0
- {9.%player%} = 0
- {10.%player%} = 0
- {11.%player%} = 0
- {12.%player%} = 0
- {13.%player%} = 0
- {14.%player%} = 0
- {15.%player%} = 0
- {16.%player%} = 0
- {17.%player%} = 0
- options:
- cobblestone : 0.5
- stone : 2
- coal : 10
- iron_ingot : 25
- iron_block : 250
- gold_ingot : 1000
- gold_block : 7500
- diamond : 20000
- diamond_block : 500000
- obsidian : 250000
- emerald_block : 750000
- every second:
- loop all players:
- if {cooldown.%loop-player%} is not 0:
- remove 1 from {cooldown.%loop-player%}
- display "&3Cooldown: &b%{cooldown.%loop-player%}%" on bossbar with 100 percent by 1 second for loop-player
- else:
- if {abilityt.%loop-player%} is false:
- display "&3Cooldown: &bReady" on bossbar with 100 percent by 1 second for loop-player
- else:
- set {cooldown.%loop-player%} to {coold.%loop-player%}
- on join:
- set tab header to "&bXPnet &8/ &bOP Prison%nl%&8&m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m %nl%&3Donate at &b/buy%nl%" and footer to "%nl%&3Online: &b%amount of all players% &8/ &b%max player count%%nl%&8&m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m " for player
- on chat:
- cancel event
- if player has permission "essentials.chat.color":
- broadcast "%{prestige.%player%}% %{rank.%player%}% %player's prefix%%player%&8: &f%colored message%"
- else:
- broadcast "%{rank.%player%}% %player's prefix%%player%&8: &7%message%"
- command /achievements:
- aliases: /achievments, /av
- trigger:
- open chest with 3 rows named "&b&lAchievements" to player
- format slot 0 of player with red stained glass pane named "&3Break &b1k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 0"]
- format slot 1 of player with red stained glass pane named "&3Break &b5k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 1"]
- format slot 2 of player with red stained glass pane named "&3Break &b10k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 2"]
- format slot 3 of player with red stained glass pane named "&3Break &b25k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 3"]
- format slot 4 of player with red stained glass pane named "&3Break &b50k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 4"]
- format slot 5 of player with red stained glass pane named "&3Break &b100k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 5"]
- format slot 6 of player with red stained glass pane named "&3Break &b200k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 6"]
- format slot 7 of player with red stained glass pane named "&3Break &b500k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 7"]
- format slot 8 of player with red stained glass pane named "&3Break &b1m &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 8"]
- format slot 9 of player with red stained glass pane named "&3Prestige &b1 &3time" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 9"]
- format slot 10 of player with red stained glass pane named "&3Prestige &b2 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 10"]
- format slot 11 of player with red stained glass pane named "&3Prestige &b5 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 11"]
- format slot 12 of player with red stained glass pane named "&3Prestige &b10 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 12"]
- format slot 13 of player with red stained glass pane named "&3Prestige &b20 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 13"]
- format slot 14 of player with red stained glass pane named "&3Prestige &b40 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 14"]
- format slot 15 of player with red stained glass pane named "&3Prestige &b80 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 15"]
- format slot 16 of player with red stained glass pane named "&3Prestige &b100 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 16"]
- format slot 17 of player with red stained glass pane named "&3Prestige &b150 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 17"]
- if {0.%player%} is "1":
- format slot 0 of player with orange stained glass pane named "&3Break &b1k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 0"]
- if {1.%player%} is "1":
- format slot 1 of player with orange stained glass pane named "&3Break &b5k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 1"]
- if {2.%player%} is "1":
- format slot 2 of player with orange stained glass pane named "&3Break &b10k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 2"]
- if {3.%player%} is "1":
- format slot 3 of player with orange stained glass pane named "&3Break &b25k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 3"]
- if {4.%player%} is "1":
- format slot 4 of player with orange stained glass pane named "&3Break &b50k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 4"]
- if {5.%player%} is "1":
- format slot 5 of player with orange stained glass pane named "&3Break &b100k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 5"]
- if {6.%player%} is "1":
- format slot 6 of player with orange stained glass pane named "&3Break &b200k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 6"]
- if {7.%player%} is "1":
- format slot 7 of player with orange stained glass pane named "&3Break &b500k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 7"]
- if {8.%player%} is "1":
- format slot 8 of player with orange stained glass pane named "&3Break &b1m &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 8"]
- if {9.%player%} is "1":
- format slot 9 of player with orange stained glass pane named "&3Prestige &b1 &3time" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 9"]
- if {10.%player%} is "1":
- format slot 10 of player with orange stained glass pane named "&3Prestige &b2 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 10"]
- if {11.%player%} is "1":
- format slot 11 of player with orange stained glass pane named "&3Prestige &b5 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 11"]
- if {12.%player%} is "1":
- format slot 12 of player with orange stained glass pane named "&3Prestige &b10 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 12"]
- if {13.%player%} is "1":
- format slot 13 of player with orange stained glass pane named "&3Prestige &b20 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 13"]
- if {14.%player%} is "1":
- format slot 14 of player with orange stained glass pane named "&3Prestige &b40 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 14"]
- if {15.%player%} is "1":
- format slot 15 of player with orange stained glass pane named "&3Prestige &b80 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 15"]
- if {16.%player%} is "1":
- format slot 16 of player with orange stained glass pane named "&3Prestige &b100 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 16"]
- if {17.%player%} is "1":
- format slot 17 of player with orange stained glass pane named "&3Prestige &b150 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 17"]
- if {0.%player%} is "2":
- format slot 0 of player with green stained glass pane named "&3Break &b1k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 0"]
- if {1.%player%} is "2":
- format slot 1 of player with green stained glass pane named "&3Break &b5k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 1"]
- if {2.%player%} is "2":
- format slot 2 of player with green stained glass pane named "&3Break &b10k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 2"]
- if {3.%player%} is "2":
- format slot 3 of player with green stained glass pane named "&3Break &b25k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 3"]
- if {4.%player%} is "2":
- format slot 4 of player with green stained glass pane named "&3Break &b50k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 4"]
- if {5.%player%} is "2":
- format slot 5 of player with green stained glass pane named "&3Break &b100k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 5"]
- if {6.%player%} is "2":
- format slot 6 of player with green stained glass pane named "&3Break &b200k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 6"]
- if {7.%player%} is "2":
- format slot 7 of player with green stained glass pane named "&3Break &b500k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 7"]
- if {8.%player%} is "2":
- format slot 8 of player with green stained glass pane named "&3Break &b1m &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 8"]
- if {9.%player%} is "2":
- format slot 9 of player with green stained glass pane named "&3Prestige &b1 &3time" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 9"]
- if {10.%player%} is "2":
- format slot 10 of player with green stained glass pane named "&3Prestige &b2 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 10"]
- if {11.%player%} is "2":
- format slot 11 of player with green stained glass pane named "&3Prestige &b5 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 11"]
- if {12.%player%} is "2":
- format slot 12 of player with green stained glass pane named "&3Prestige &b10 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 12"]
- if {13.%player%} is "2":
- format slot 13 of player with green stained glass pane named "&3Prestige &b20 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 13"]
- if {14.%player%} is "2":
- format slot 14 of player with green stained glass pane named "&3Prestige &b40 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 14"]
- if {15.%player%} is "2":
- format slot 15 of player with green stained glass pane named "&3Prestige &b80 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 15"]
- if {16.%player%} is "2":
- format slot 16 of player with green stained glass pane named "&3Prestige &b100 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 16"]
- if {17.%player%} is "2":
- format slot 17 of player with green stained glass pane named "&3Prestige &b150 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 17"]
- command /ach <player> <text>:
- permission: *
- trigger:
- if arg-2 is "0":
- if {blocks.%arg-1%} is higher than or equal to 1000:
- set {0.%arg-1%} to 1
- #a
- if arg-2 is "1":
- if {blocks.%arg-1%} is higher than or equal to 5000:
- set {1.%arg-1%} to 1
- #a
- if arg-2 is "2":
- if {blocks.%arg-1%} is higher than or equal to 10000:
- set {2.%arg-1%} to 1
- #a
- if arg-2 is "3":
- if {blocks.%arg-1%} is higher than or equal to 25000:
- set {3.%arg-1%} to 1
- #a
- if arg-2 is "4":
- if {blocks.%arg-1%} is higher than or equal to 50000:
- set {4.%arg-1%} to 1
- #a
- if arg-2 is "5":
- if {blocks.%arg-1%} is higher than or equal to 100000:
- set {5.%arg-1%} to 1
- #a
- if arg-2 is "6":
- if {blocks.%arg-1%} is higher than or equal to 200000:
- set {6.%arg-1%} to 1
- #a
- if arg-2 is "7":
- if {blocks.%arg-1%} is higher than or equal to 500000:
- set {7.%arg-1%} to 1
- #a
- if arg-2 is "8":
- if {blocks.%arg-1%} is higher than or equal to 1000000:
- set {8.%arg-1%} to 1
- #a
- if arg-2 is "9":
- if {prestigen.%arg-1%} is higher than or equal to 1:
- set {9.%arg-1%} to 1
- #a
- if arg-2 is "10":
- if {prestigen.%arg-1%} is higher than or equal to 2:
- set {10.%arg-1%} to 1
- #a
- if arg-2 is "11":
- if {prestigen.%arg-1%} is higher than or equal to 5:
- set {11.%arg-1%} to 1
- #a
- if arg-2 is "12":
- if {prestigen.%arg-1%} is higher than or equal to 10:
- set {12.%arg-1%} to 1
- #a
- if arg-2 is "13":
- if {prestigen.%arg-1%} is higher than or equal to 20:
- set {13.%arg-1%} to 1
- #a
- if arg-2 is "14":
- if {prestigen.%arg-1%} is higher than or equal to 40:
- set {14.%arg-1%} to 1
- #a
- if arg-2 is "15":
- if {prestigen.%arg-1%} is higher than or equal to 80:
- set {15.%arg-1%} to 1
- #a
- if arg-2 is "16":
- if {prestigen.%arg-1%} is higher than or equal to 100:
- set {16.%arg-1%} to 1
- #a
- if arg-2 is "17":
- if {prestigen.%arg-1%} is higher than or equal to 150:
- set {17.%arg-1%} to 1
- #a
- command /bkcreate:
- permission: *
- trigger:
- give player 1 of chest named "&6&lBackpack" with lore "&71000/%{bk::1}%" and "&3Holds mined blocks!"
- command /bkreset:
- permission: *
- trigger:
- set {bk::1} to 0
- set lore of player's held item to "&71000/%{bk::1}%" and "&3Holds mined blocks!"
- on rightclick with chest:
- if name of player's held item is "&6&lBackpack":
- send "%{bk::1}%" to player
- on break:
- if event-block is stone:
- loop all items in player's inventory:
- set {_temp} to {bk::1}
- if loop-item's lore contains "&71000/%{_temp}%":
- add 1 to {bk::1}
- set line 1 of lore of loop-item to "&71000/%{bk::1}%"
- command /rankup:
- trigger:
- if {rank.%player%} is "&8[&bA&8]":
- if player's balance is higher than or equal to 40000:
- remove 40000 from player's balance
- set {rank.%player%} to "&8[&bB&8]"
- set {sstone.%player%} to 5
- else:
- send "&b&lXPnet &8» &3You dont have &b40k&3!"
- if {rank.%player%} is "&8[&bB&8]":
- if player's balance is higher than or equal to 100000:
- remove 100000 from player's balance
- set {rank.%player%} to "&8[&bC&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b100k&3!"
- if {rank.%player%} is "&8[&bC&8]":
- if player's balance is higher than or equal to 250000:
- remove 250000 from player's balance
- set {rank.%player%} to "&8[&bD&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b250k&3!"
- if {rank.%player%} is "&8[&bD&8]":
- if player's balance is higher than or equal to 750000:
- remove 750000 from player's balance
- set {rank.%player%} to "&8[&bE&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b750k&3!"
- if {rank.%player%} is "&8[&bE&8]":
- if player's balance is higher than or equal to 1250000:
- remove 1250000 from player's balance
- set {rank.%player%} to "&8[&bF&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b1.25M&3!"
- if {rank.%player%} is "&8[&bF&8]":
- if player's balance is higher than or equal to 2000000:
- remove 2000000 from player's balance
- set {rank.%player%} to "&8[&bG&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b2M&3!"
- if {rank.%player%} is "&8[&bG&8]":
- if player's balance is higher than or equal to 5000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bH&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b5M&3!"
- if {rank.%player%} is "&8[&bH&8]":
- if player's balance is higher than or equal to 10000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bI&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b10M&3!"
- if {rank.%player%} is "&8[&bI&8]":
- if player's balance is higher than or equal to 50000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bJ&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b50M&3!"
- if {rank.%player%} is "&8[&bJ&8]":
- if player's balance is higher than or equal to 100000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bK&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b100M&3!"
- if {rank.%player%} is "&8[&bK&8]":
- if player's balance is higher than or equal to 500000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bL&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b500M&3!"
- if {rank.%player%} is "&8[&bL&8]":
- if player's balance is higher than or equal to 750000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bM&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b750M&3!"
- if {rank.%player%} is "&8[&bM&8]":
- if player's balance is higher than or equal to 1000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bN&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b1B&3!"
- if {rank.%player%} is "&8[&bN&8]":
- if player's balance is higher than or equal to 5000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bO&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b5B&3!"
- if {rank.%player%} is "&8[&bO&8]":
- if player's balance is higher than or equal to 7500000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bP&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b7.5B&3!"
- if {rank.%player%} is "&8[&bP&8]":
- if player's balance is higher than or equal to 10000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bQ&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b10B&3!"
- if {rank.%player%} is "&8[&bQ&8]":
- if player's balance is higher than or equal to 25000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bR&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b25B&3!"
- if {rank.%player%} is "&8[&bR&8]":
- if player's balance is higher than or equal to 50000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bS&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b50B&3!"
- if {rank.%player%} is "&8[&bS&8]":
- if player's balance is higher than or equal to 75000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bT&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b75B&3!"
- if {rank.%player%} is "&8[&bT&8]":
- if player's balance is higher than or equal to 100000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bU&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b100B&3!"
- if {rank.%player%} is "&8[&bU&8]":
- if player's balance is higher than or equal to 150000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bV&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b150B&3!"
- if {rank.%player%} is "&8[&bV&8]":
- if player's balance is higher than or equal to 175000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bW&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b175B&3!"
- if {rank.%player%} is "&8[&bW&8]":
- if player's balance is higher than or equal to 250000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bX&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b250B&3!"
- if {rank.%player%} is "&8[&bX&8]":
- if player's balance is higher than or equal to 500000000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bY&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b500B&3!"
- if {rank.%player%} is "&8[&bY&8]":
- if player's balance is higher than or equal to 5000000:
- remove 5000000 from player's balance
- set {rank.%player%} to "&8[&bZ&8]"
- else:
- send "&b&lXPnet &8» &3You dont have &b500B&3!"
- if {rank.%player%} is "&8[&bZ&8]":
- send "&b&lXPnet &8» &3You already have the top rank, &b/prestige&3!" to player
- command /rebirth:
- trigger:
- send "not ready" to player
- 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!"
- on rightclick:
- if name of player's held item is "&bPickaxe &8[&b%{blocks.%player%}%&8]":
- wait a tick
- open chest with 1 row named "&b&lU-Tokens" to player
- wait a tick
- format slot 1 of player with diamond pickaxe named "&bPickaxe" with lore "&7Pickaxe upgrades" to run [make player execute command "/pickaxe"]
- format slot 3 of player with chest named "&bBackpacks" with lore "&7Backpack shop" to run [make player execute command "/backpacks"]
- format slot 5 of player with string named "&bItems" with lore "&7Shop for many items" to run [make player execute command "/items"]
- format slot 7 of player with skull of player named "&bPlayer" with lore "&7Player upgrades" to run [make player execute command "/player"]
- command /upgrade:
- trigger:
- if name of player's held item is "&bPickaxe &8[&b%{blocks.%player%}%&8]":
- wait a tick
- open chest with 1 row named "&b&lU-Tokens" to player
- wait a tick
- format slot 1 of player with diamond pickaxe named "&bPickaxe" with lore "&7Pickaxe upgrades" to run [make player execute command "/pickaxe"]
- format slot 3 of player with chest named "&bBackpacks" with lore "&7Backpack shop" to run [make player execute command "/backpacks"]
- format slot 5 of player with string named "&bItems" with lore "&7Shop for many items" to run [make player execute command "/items"]
- format slot 7 of player with skull of player named "&bPlayer" with lore "&7Player upgrades" to run [make player execute command "/player"]
- command /player:
- trigger:
- wait a tick
- open chest with 2 rows named "&bPlayer" to player
- wait a tick
- format slot 17 of player with arrow named "&7Back" to run [make player execute command "/upgrade"]
- command /items:
- trigger:
- wait a tick
- open chest with 2 rows named "&bItems" to player
- wait a tick
- format slot 17 of player with arrow named "&7Back" to run [make player execute command "/upgrade"]
- command /backpacks:
- trigger:
- wait a tick
- open chest with 2 rows named "&bBackpacks" to player
- wait a tick
- format slot 17 of player with arrow named "&7Back" to run [make player execute command "/upgrade"]
- command /pickaxe:
- trigger:
- wait a tick
- open chest with 2 rows named "&bPickaxe" to player
- wait a tick
- format slot 17 of player with arrow named "&7Back" to run [make player execute command "/upgrade"]
- format slot 0 of player with tnt named "" with lore "" and "" to run [make console execute command "shopbuy %player% explosive"]
- command /shopbuy <player> <text>:
- permission: *
- trigger:
- if arg-2 is "explosive":
- if {tokens.%arg-1%} is higher than or equal to 10000:
- remove 10000 from {tokens.%arg-1%}
- add 1 to {explosive.%arg-1%}
- set line 1 of lore of arg-1's tool to "&7Explosive %{explosive.%arg-1%}%"
- command /tokenme <number>:
- permission: *
- trigger:
- add arg-1 to {tokens.%player%}
- on break:
- chance of 5%:
- set {_tokensluck} to random integer between 1 and 20
- add {_tokensluck} to {tokens.%player%}
- send "&7&m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m " to player
- send "&9You have recieved &b%{_tokensluck}% &9U-Tokens" to player
- send "&7&m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m " to player
- if player can hold command block:
- set {_fortune} to level of fortune of player's tool
- give player {_fortune} of event-block
- else:
- send player title "&4Your inventory is full" with subtitle "&cNo space for item" for 2 seconds
- if name of player's held item is "&bPickaxe &8[&b%{blocks.%player%}%&8]":
- add 1 to {blocks.%player%}
- set name of player's held item to "&bPickaxe &8[&b%{blocks.%player%}%&8]"
- chance of 25%:
- loop all blocks in radius 3 around event-block:
- if loop-block is stone:
- add 1 to {blocks.%player%}
- set name of player's held item to "&bPickaxe &8[&b%{blocks.%player%}%&8]"
- chance of 50%:
- set loop-block to air
- set {_fortune} to level of fortune of player's tool
- give player {_fortune} of event-block
- create a fake explosion at event-block
- command /resetblock <player>:
- permission: *
- trigger:
- set {blocks.%arg-1%} to 0
- set name of player's held item to "&bPickaxe &8[&b0&8]"
- command /pickadd [<player>]:
- permission: pick
- trigger:
- if arg-1 is set:
- give arg-1 unbreakable diamond pickaxe of fortune 5 named "&bPickaxe &8[&b%{blocks.%arg-1%}%&8]"
- else:
- give player unbreakable diamond pickaxe of fortune 5 named "&bPickaxe &8[&b%{blocks.%player%}%&8]"
- on first join:
- give player unbreakable diamond pickaxe of fortune 5 named "&bPickaxe &8[&b%{blocks.%player%}%&8]"
- 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]"
- function format(n: number) :: text:
- set {_data} to "QT,18|Q,15|T,12|B,9|M,6|k,3"
- loop split {_data} at "|":
- set {_s::*} to split loop-value at ","
- {_n} >= 10 ^ {_s::2} parsed as number
- return "%{_n} / 10 ^ {_s::2} parsed as number%%{_s::1}%"
- return "%{_n}%"
- command /setrank <player> <text>:
- permission: *
- trigger:
- if arg-2 is "a":
- set {rank.%arg-1%} to "&8[&bA&8]"
- command /sellall:
- aliases: /sell all
- trigger:
- loop all items in player's inventory:
- if loop-item is stone:
- set {stone.%player%} to amount of stone in player's inventory
- add ({sstone.%player%} * {stone.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {stone.%player%} of stone from player's inventory
- if loop-item is coal:
- set {coal.%player%} to amount of coal in player's inventory
- add ({scoal.%player%} * {coal.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {coal.%player%} of coal from player's inventory
- if loop-item is iron ingot:
- set {iron_ingot.%player%} to amount of iron ingot in player's inventory
- add ({siron_ingot.%player%} * {iron_ingot.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {iron_ingot.%player%} of iron ingot from player's inventory
- if loop-item is iron block:
- set {iron_block.%player%} to amount of iron block in player's inventory
- add ({siron_block.%player%} * {iron_block.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {iron_block.%player%} of iron block from player's inventory
- if loop-item is gold ingot:
- set {gold_ingot.%player%} to amount of gold ingot in player's inventory
- add ({sgold_ingot.%player%} * {gold_ingot.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {gold_ingot.%player%} of gold ingot from player's inventory
- if loop-item is gold block:
- set {gold_block.%player%} to amount of gold block in player's inventory
- add ({sgold_block.%player%} * {gold_block.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {gold_block.%player%} of gold block from player's inventory
- if loop-item is diamond:
- set {diamond.%player%} to amount of diamond in player's inventory
- add ({sdiamond.%player%} * {diamond.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {diamond.%player%} of diamond from player's inventory
- if loop-item is diamond block:
- set {diamond_block.%player%} to amount of diamond block in player's inventory
- add ({sdiamond_block.%player%} * {diamond_block.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {diamond_block.%player%} of diamond block from player's inventory
- if loop-item is obsidian:
- set {obsidian.%player%} to amount of obsidian in player's inventory
- add ({sobsidian.%player%} * {obsidian.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {obsidian.%player%} of obsidian from player's inventory
- if loop-item is emerald block:
- set {emerald_block.%player%} to amount of emerald block in player's inventory
- add ({semerald_block.%player%} * {emerald_block.%player%} * {multiplier.%player%}) to {sellamount.%player%}
- remove {emerald_block.%player%} of emerald block from player's inventory
- wait 1 tick
- if {sellamount.%player%} is greater than 0:
- add {sellamount.%player%} to player's balance
- send "&b&lXPnet &8» &fYou have sold your items for &b%{sellamount.%player%}%&f!" to player
- set {sellamount.%player%} to 0
- command /multiplier <player> [<number>]:
- permission: multiplier.use
- trigger:
- if arg-1 is set:
- set {multiplier.%arg-1%} to arg-2
- else if arg-1 is not set:
- set {multiplier.%arg-1%} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement