Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1.  
  2. command /enchant:
  3. trigger:
  4. if player's held item is not a diamond pickaxe:
  5. send "&cYou must be holding a pickaxe!"
  6. stop
  7. if {tokenfindercost::%player%} is not set:
  8. set {tokenfindercost::%player%} to 500
  9. if {explosivecost::%player%} is not set:
  10. set {explosivecost::%player%} to 1000
  11. if player's held item is a diamond pickaxe:
  12. open chest with 1 rows named "&e&lCUSTOM ENCHANTS" to player
  13. format gui slot 0 of player with magma cream named "&3&lTOKEN FINDER" with lore "&8+1 &7Cost: %{tokenfindercost::%player%}%" to run:
  14. if {tokenfinder::%player%} = 50:
  15. send "&cYou've reached max TokenFinder!"
  16. stop
  17. if {tokens::%uuid of player%} is greater than or equal to {tokenfindercost::%player%}:
  18. remove {tokenfindercost::%player%} from {tokens::%uuid of player%}
  19. if {tokenfinder::%player%} is not set:
  20. set {tokenfinder::%player%} to 1
  21. set lore of player's tool to "%lore of player's tool%||&7TokenFinder %{tokenfinder::%player%}%"
  22. add 100 to {tokenfindercost::%player%}
  23. player command "enchant"
  24. stop
  25. add 1 to {tokenfinder::%player%}
  26. add 100 to {tokenfindercost::%player%}
  27. set {_lore::*} to lore of tool
  28. loop {_lore::*}:
  29. if loop-value contains "&7TokenFinder":
  30. set line (loop-index parsed as int) + 1 of lore of tool to "&7TokenFinder %{tokenfinder::%player%}%"
  31. stop loop
  32. player command "enchant"
  33. stop
  34. format gui slot 1 of player with tnt named "&3&lEXPLOSIVE" with lore "&8+1 &7Cost: %{explosivecost::%player%}%" to run:
  35. if {explosive::%player%} = 25:
  36. send "&cYou've reached max Explosive!"
  37. stop
  38. if {tokens::%uuid of player%} is greater than or equal to {explosivecost::%player%}:
  39. remove {explosivecost::%player%} from {tokens::%uuid of player%}
  40. if {explosive::%player%} is not set:
  41. set {explosive::%player%} to 1
  42. set lore of player's tool to "%lore of player's tool%||&7Explosive %{explosive::%player%}%"
  43. add 1000 to {explosivecost::%player%}
  44. player command "enchant"
  45. stop
  46. add 1 to {explosive::%player%}
  47. add 1000 to {explosivecost::%player%}
  48. set {_lore::*} to lore of tool
  49. loop {_lore::*}:
  50. if loop-value contains "Explosive ":
  51. set line (loop-index parsed as int) + 1 of lore of tool to "&7Explosive %{explosive::%player%}%"
  52. stop loop
  53. player command "enchant"
  54. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement