Advertisement
Guest User

Untitled

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