Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click:
- player's held item is a diamond pickaxe
- open chest with 1 rows named "&3Upgrading Menu &8- &7%player%" to player
- format slot 0 of player with barrier named "&cClose Menu" to close
- format slot 2 of player with diamond pickaxe named "&eEnchantments" to close then run [execute player command "openGui"]
- Command /openGui:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&3Enchanting Menu &8- &7%player%" to player
- format slot 0 of player with barrier named "&cClose Menu" to close
- format slot 2 of player with stone named "&eEfficieny" to run [execute player command "eff"]
- format slot 3 of player with coal ore named "&eUnbreaking" to run [execute player command "unb"]
- command /eff:
- trigger:
- set {_c} to level of efficiency of the player's tool
- set {_price} to ({_c} * 250) + 1500
- if player's balance is greater than or equal to {_price}:
- send "&eUpgraded pickaxe!"
- remove {_price} from player's balance
- enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
- else:
- send "&eYou need more cash. &6($%{_price}%)"
- command /unb:
- trigger:
- set {_c} to level of unbreaking of the player's tool
- set {_price} to ({_c} * 150) + 500
- if player's balance is greater than or equal to {_price}:
- send "&eUpgraded pickaxe!"
- remove {_price} from player's balance
- enchant the tool with "unbreaking %level of unbreaking of the tool + 1%" parsed as enchantment type
- else:
- send "&eYou need more cash. &6($%{_price}%)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement