Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /tokenfinderdelete:
- trigger:
- if lore of player's held item contains "&7TokenFinder I":
- delete the 2nd line of player's tool's lore
- add 400 to {tokens::%uuid of player%}
- send "&7Refunded TokenFinder &a+400"
- command /enchant:
- trigger:
- if player's held item is not a diamond pickaxe:
- send "&cYou must be holding a pickaxe!"
- stop
- if {tokenfindercost::%player%} is not set:
- set {tokenfindercost::%player%} to 500
- if {explosivecost::%player%} is not set:
- set {explosivecost::%player%} to 1000
- if player's held item is a diamond pickaxe:
- open chest with 1 rows named "&e&lCUSTOM ENCHANTS" to player
- format gui slot 0 of player with magma cream named "&3&lTOKEN FINDER" with lore "&8+1 &7Cost: %{tokenfindercost::%player%}%" to run:
- if {tokenfinder::%player%} = 50:
- send "&cYou've reached max TokenFinder!"
- stop
- if {tokens::%uuid of player%} is greater than or equal to {tokenfindercost::%player%}:
- remove {tokenfindercost::%player%} from {tokens::%uuid of player%}
- if {tokenfinder::%player%} is not set:
- set {tokenfinder::%player%} to 1
- set lore of player's tool to "%lore of player's tool%||&7TokenFinder %{tokenfinder::%player%}%"
- add 100 to {tokenfindercost::%player%}
- player command "enchant"
- stop
- add 1 to {tokenfinder::%player%}
- add 100 to {tokenfindercost::%player%}
- set {_lore::*} to lore of tool
- loop {_lore::*}:
- if loop-value contains "&7TokenFinder":
- set line (loop-index parsed as int) + 1 of lore of tool to "&7TokenFinder %{tokenfinder::%player%}%"
- stop loop
- player command "enchant"
- stop
- format gui slot 1 of player with tnt named "&3&lEXPLOSIVE" with lore "&8+1 &7Cost: %{explosivecost::%player%}%" to run:
- if {explosive::%player%} = 25:
- send "&cYou've reached max Explosive!"
- stop
- if {tokens::%uuid of player%} is greater than or equal to {explosivecost::%player%}:
- remove {explosivecost::%player%} from {tokens::%uuid of player%}
- if {explosive::%player%} is not set:
- set {explosive::%player%} to 1
- set lore of player's tool to "%lore of player's tool%||&7Explosive %{explosive::%player%}%"
- add 1000 to {explosivecost::%player%}
- player command "enchant"
- stop
- add 1 to {explosive::%player%}
- add 1000 to {explosivecost::%player%}
- set {_lore::*} to lore of tool
- loop {_lore::*}:
- if loop-value contains "&7Explosive":
- set line (loop-index parsed as int) + 1 of lore of tool to "&7Explosive %{explosive::%player%}%"
- stop loop
- player command "enchant"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement