Advertisement
Cool_Colton

Untitled

Jun 4th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. on block break:
  2. cancel drops
  3. add 1 to {%player%.blocks.broken}
  4. add 1 to {%player%.blocks}
  5. if {%player%.blocks} is 5:
  6. add 5 to {%player%.tokens}
  7. set {%player%.blocks} to 0
  8. set {number} to "%level of fortune of the player's tool%"
  9. if event-block is a ore:
  10. if event-block is coal ore:
  11. loop "%{number}%" parsed as integer times:
  12. give coal to player
  13. if past event-block is iron ore:
  14. loop "%{number}%" parsed as integer times:
  15. give iron ingot to player
  16. if past event-block is gold ore:
  17. loop "%{number}%" parsed as integer times:
  18. give gold ingot to player
  19. else:
  20. loop "%{number}%" parsed as integer times:
  21. give player event-block
  22.  
  23. command /enchant:
  24. aliases: /en
  25. trigger:
  26. if player's tool is diamond pickaxe:
  27. send "Opening enchant menu" to player
  28. create new gui with id "tokenshop" with virtual chest named " §7>-§4Enchant§7-<" with 6 rows:
  29. format gui slot 49 with magma cream named "§aTokens: %{%player%.tokens}%"
  30. format gui slot 20 with diamond pickaxe named "§cMining Tool":
  31. create new gui with id "PickaxeUP" with virtual chest named " §4Pickaxe Upgrades":
  32. format gui slot 0 with diamond pickaxe named "§7Efficiency"
  33. open gui with id "PickaxeUP" to player
  34. edit gui with id "tokenshop":
  35. format gui slot 24 with chest named "§aBackpack":
  36. open gui with id "tokenshop" to player
  37.  
  38. else:
  39. send "You are not holding a pickaxe"
  40.  
  41. on skript load:
  42. set {Pickaxe} to diamond pickaxe named "§4Mining tool"
  43. enchant {Pickaxe} with efficiency 15
  44. enchant {Pickaxe} with fortune 15
  45.  
  46. set {backpack} to chest named "§aBackpack"
  47.  
  48. on first join:
  49. give player {Pickaxe}
  50. give player {backpack}
  51.  
  52. command /items:
  53. permission: *
  54. trigger:
  55. give player {Pickaxe}
  56. give player {backpack}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement