Advertisement
RedstoneKing106

Untitled

Dec 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. on right click:
  2. player's held item is a diamond pickaxe
  3. open chest with 1 rows named "&3Upgrading Menu &8- &7%player%" to player
  4. format slot 0 of player with barrier named "&cClose Menu" to close
  5. format slot 2 of player with diamond pickaxe named "&eEnchantments" to close then run [execute player command "openGui"]
  6.  
  7. Command /openGui:
  8. trigger:
  9. wait 3 ticks
  10. open chest with 1 rows named "&3Enchanting Menu &8- &7%player%" to player
  11. format slot 0 of player with barrier named "&cClose Menu" to close
  12. format slot 2 of player with stone named "&eEfficieny" to run [execute player command "eff"]
  13. format slot 3 of player with coal ore named "&eUnbreaking" to run [execute player command "unb"]
  14.  
  15. command /eff:
  16. trigger:
  17. set {_c} to level of efficiency of the player's tool
  18. set {_price} to ({_c} * 250) + 1500
  19. if player's balance is greater than or equal to {_price}:
  20. send "&eUpgraded pickaxe!"
  21. remove {_price} from player's balance
  22. enchant the tool with "efficiency %level of efficiency of the tool + 1%" parsed as enchantment type
  23. else:
  24. send "&eYou need more cash. &6($%{_price}%)"
  25.  
  26. command /unb:
  27. trigger:
  28. set {_c} to level of unbreaking of the player's tool
  29. set {_price} to ({_c} * 150) + 500
  30. if player's balance is greater than or equal to {_price}:
  31. send "&eUpgraded pickaxe!"
  32. remove {_price} from player's balance
  33. enchant the tool with "unbreaking %level of unbreaking of the tool + 1%" parsed as enchantment type
  34. else:
  35. send "&eYou need more cash. &6($%{_price}%)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement