Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on block break:
- cancel drops
- add 1 to {%player%.blocks.broken}
- add 1 to {%player%.blocks}
- if {%player%.blocks} is 5:
- add 5 to {%player%.tokens}
- set {%player%.blocks} to 0
- set {number} to "%level of fortune of the player's tool%"
- if event-block is a ore:
- if event-block is coal ore:
- loop "%{number}%" parsed as integer times:
- give coal to player
- if past event-block is iron ore:
- loop "%{number}%" parsed as integer times:
- give iron ingot to player
- if past event-block is gold ore:
- loop "%{number}%" parsed as integer times:
- give gold ingot to player
- else:
- loop "%{number}%" parsed as integer times:
- give player event-block
- command /enchant:
- aliases: /en
- trigger:
- if player's tool is diamond pickaxe:
- send "Opening enchant menu" to player
- create new gui with id "tokenshop" with virtual chest named " §7>-§4Enchant§7-<" with 6 rows:
- format gui slot 49 with magma cream named "§aTokens: %{%player%.tokens}%"
- format gui slot 20 with diamond pickaxe named "§cMining Tool":
- create new gui with id "PickaxeUP" with virtual chest named " §4Pickaxe Upgrades":
- format gui slot 0 with diamond pickaxe named "§7Efficiency"
- open gui with id "PickaxeUP" to player
- edit gui with id "tokenshop":
- format gui slot 24 with chest named "§aBackpack":
- open gui with id "tokenshop" to player
- else:
- send "You are not holding a pickaxe"
- on skript load:
- set {Pickaxe} to diamond pickaxe named "§4Mining tool"
- enchant {Pickaxe} with efficiency 15
- enchant {Pickaxe} with fortune 15
- set {backpack} to chest named "§aBackpack"
- on first join:
- give player {Pickaxe}
- give player {backpack}
- command /items:
- permission: *
- trigger:
- give player {Pickaxe}
- give player {backpack}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement