Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick:
- if player is holding a diamond pickaxe:
- set {h1} to "%player%" parsed as offlineplayer
- open virtual chest inventory with size 5 named "&6&lEnchant" to player
- loop integers from 0 to 44:
- make gui slot loop-value of player with yellow glass named " " to do nothing
- make gui slot 4 of player with {h1}'s skull named "&e%player%" with lore "&eBalance: &6&o%{balance.%player's uuid%}%||&eCurrent Menu: &6Enchant" to do nothing
- make gui slot 10 of player with book named "&eEfficiency" with lore "&7||&8» &ePrice: &f%{efficiency.price.%player's uuid%}%||&8» &eClick to buy" to run:
- if player's balance >= {efficiency.price.%player's uuid%}:
- remove {efficiency.price.%player's uuid%} from player's balance
- enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
- send "&eYou have purchased &f1 &elevel of efficiency." to player
- add 500 to {efficiency.price.%player's uuid%}
- close player's inventory
- else:
- send "&eYou do not have enough money to make this transaction!" to player
- make gui slot 12 of player with book named "&eFortune" with lore "&7||&8» &ePrice: &f%{fortune.price.%player's uuid%}%||&8» &eClick to buy" to run:
- if player's balance >= {fortune.price.%player's uuid%}:
- remove {fortune.price.%player's uuid%} from player's balance
- enchant the tool with "fortune %level of fortune of the tool + 1%" parsed as enchantment type
- send "&eYou have purchased &f1 &elevel of fortune." to player
- add 5 to {sellamount.%player's uuid%}
- add 1000 to {fortune.price.%player's uuid%}
- close player's inventory
- else:
- send "&eYou do not have enough money to make this transaction!" to player
- on break:
- add {sellamount.%player's uuid%} to player's balance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement