Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- {Level.%player%} = 1
- {Exp.%player%} = 0
- {Tokens.%player%} = 0
- {lucky.%player%} = false
- {dura.%player%} = false
- {vein.%player%} = false
- options:
- p: &b&lBlockworks &8|&r
- on mine:
- if player is holding a pickaxe:
- set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- add 1 to {Exp.%player%}
- if {Exp.%player%} is greater than or equal to 100:
- set {Exp.%player%} to 0
- add 1 to {Level.%player%}
- message ""
- message "{@p} &eYou have Leveled up your Pickaxe!"
- message "{@p} &7Vortex Miner for 3 seconds"
- message "{@p} &7Received Mystery Crate"
- message ""
- add 1 to {Tokens.%player%}
- set {vein.%player%} to true
- wait 3 seconds
- set {vein.%player%} to false
- play raw sound "entity.firework.blast" at event-location with pitch 1 volume 0.5
- command /upgradepick:
- trigger:
- open chest with 5 row named "&bPickaxe Upgrader &9- &bBalance: %{Tokens.%player%}%" to player
- wait 2 tick
- format slot 0 of player with white glass pane named "&b " to close
- format slot 1 of player with white glass pane named "&b " to close
- format slot 2 of player with white glass pane named "&4 " to close
- format slot 3 of player with white glass pane named "&b " to close
- format slot 4 of player with white glass pane named "&b " to close
- format slot 5 of player with white glass pane named "&b " to close
- format slot 6 of player with white glass pane named "&b " to close
- format slot 7 of player with white glass pane named "&4 " to close
- format slot 8 of player with white glass pane named "&b " to close
- format slot 9 of player with white glass pane named "&b " to close
- format slot 10 of player with nether star named "&5Efficiency" with lore "||&6* &eCosts: 3T||&6* &eMax Level: 5||||&6Info:||&7Faster Mining" to close then run [make player execute command "/efficiency123"]
- format slot 11 of player with nether star named "&5Unbreaking" with lore "||&6* &eCosts: 2T||&6* &eMax Level: 10||||&6Info:||&7Your pickaxe has more||&7Durability" to close then run [make player execute command "/unbreaking123"]
- format slot 12 of player with white glass pane named "&4 " to close
- format slot 13 of player with glowing anvil named "&bRepair Pickaxe" with lore "||&6* &eCosts: 5T||||&6Info:||&7Repairs your Pickaxe" to close then run [make player execute command "/repairpick123"]
- format slot 14 of player with white glass pane named "&4 " to close
- format slot 15 of player with nether star named "&cComing soon" with lore "||&6* &eCosts: 30T||&6* &eMax Level: 1||||&6Info:||&cComing soon" to close
- format slot 16 of player with nether star named "&5Durability" with lore "||&6* &eCosts: 10T||&6* &eMax Level: 1||||&6Info:||&7Has a chance to repair||&7Your pickaxe||&7While Mining" to close then run [make player execute command "/dura123"]
- format slot 17 of player with white glass pane named "&b " to close
- format slot 18 of player with white glass pane named "&b " to close
- format slot 19 of player with nether star named "&5Fortune" with lore "||&6* &eCosts: 5T||&6* &eMax Level: 5||||&6Info:||&7Gives more ore On mine||&7Does not increase EXP!||&7On multiple ores||&7(Only the ore you mined)" to close then run [make player execute command "/fortune123"]
- format slot 20 of player with white glass pane named "&b " to close
- format slot 21 of player with white glass pane named "&b " to close
- format slot 22 of player with white glass pane named "&b " to close
- format slot 23 of player with white glass pane named "&b " to close
- format slot 24 of player with white glass pane named "&b " to close
- format slot 25 of player with nether star named "&5Lucky" with lore "||&6* &eCosts: 20T||&6* &eMax Level: 1||||&6Info:||&7Allows you to find||&7Money while mining" to close then run [make player execute command "/lucky123"]
- format slot 26 of player with white glass pane named "&b " to close
- format slot 27 of player with white glass pane named "&b " to close
- format slot 28 of player with white glass pane named "&b " to close
- format slot 29 of player with white glass pane named "&b " to close
- format slot 30 of player with stone pickaxe named "&5Upgrade &d> &7Stone Pickaxe" with lore "||&6* &eCosts: 15T||||&6Info:||&7Upgrades your wood pickaxe||&7to a stone pickaxe||&4Removes all current||&4Enchantments" to close then run [make player execute command "/stone"]
- format slot 31 of player with iron pickaxe named "&5Upgrade &d> &fIron Pickaxe" with lore "||&6* &eCosts: 30T||||&6Info:||&7Upgrades your stone pickaxe||&7to a iron pickaxe||&4Removes all current||&4Enchantments" to close then run [make player execute command "/iron"]
- format slot 32 of player with diamond pickaxe named "&5Upgrade &d> &bDiamond Pickaxe" with lore "||&6* &eCosts: 50T||||&6Info:||&7Upgrades your Iron pickaxe||&7to a Diamond pickaxe||&4Removes all current||&4Enchantments" to close then run [make player execute command "/diamond"]
- format slot 33 of player with white glass pane named "&b " to close
- format slot 34 of player with white glass pane named "&b " to close
- format slot 35 of player with white glass pane named "&b " to close
- format slot 36 of player with white glass pane named "&b " to close
- format slot 37 of player with white glass pane named "&b " to close
- format slot 38 of player with white glass pane named "&b " to close
- format slot 39 of player with white glass pane named "&b " to close
- format slot 40 of player with white glass pane named "&b " to close
- format slot 41 of player with white glass pane named "&b " to close
- format slot 42 of player with white glass pane named "&b " to close
- format slot 43 of player with white glass pane named "&b " to close
- format slot 44 of player with white glass pane named "&b " to close
- on first join:
- set slot 4 of player to 1 of glowing wooden pickaxe named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- command /test:
- trigger:
- set slot 4 of player to 1 of glowing wooden pickaxe named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- on right click with pickaxe:
- make player execute command "/upgradepick"
- command /onveintest:
- permission: test.test
- trigger:
- set {vein.%player%} to true
- command /offveintest:
- permission: test.test
- trigger:
- set {vein.%player%} to false
- command /stone:
- trigger:
- if player has 1 wooden_pickaxe:
- if {Tokens.%player%} is greater than or equal to 15:
- remove 1 wooden_pickaxe from player
- set slot 4 of player to 1 stone_pickaxe of unbreaking 1 named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- remove 15 from {Tokens.%player%}
- else:
- message "{@p} &7You dont have enough tokens."
- else:
- message "{@p} &eYou do not have a wooden pickaxe."
- on drop of pickaxe:
- cancel the event
- on inventory click:
- event-item is a pickaxe:
- cancel event
- command /efficiency123:
- trigger:
- if {Tokens.%player%} is greater than or equal to 3:
- if tool is enchanted with efficiency 5:
- message "{@p} You have reach the Enchantment Max!"
- else:
- send ""
- send "{@p} &eYou have Enchanted your pickaxe."
- send ""
- remove 3 from {Tokens.%player%}
- evaluate "enchant player's tool with efficiency %level of efficiency of player's tool + 1%"
- else:
- send "{@p} &eYou dont have enough tokens"
- on mine:
- if lore of player's held item contains "&7Lucky I":
- chance of 5%:
- make console execute command "eco give %player% 100"
- chance of 15%:
- make console execute command "eco give %player% 10"
- chance of 1%:
- make console execute command "eco give %player% 400"
- on mine:
- if lore of player's held item contains "&7Durability I":
- chance of 50%:
- repair the player's held item by 2
- on mine of coal ore:
- set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- add 1 to {Exp.%player%}
- on mine of iron ore:
- set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- add 2 to {Exp.%player%}
- on mine of gold ore:
- set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- add 2 to {Exp.%player%}
- on mine of diamond ore:
- set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- add 3 to {Exp.%player%}
- on mine of emerald ore:
- set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- add 3 to {Exp.%player%}
- command /repairpick123:
- trigger:
- if {Tokens.%player%} is greater than or equal to 5:
- repair the player's held item by 100000
- send ""
- send "{@p} &eYou have Enchanted your pickaxe."
- send ""
- remove 5 from {Tokens.%player%}
- else:
- send "{@p} &eYou dont have enough tokens"
- command /lucky123:
- trigger:
- if {Tokens.%player%} is greater than or equal to 20:
- if lore of tool does not contain "&7Lucky I":
- message "{@p} You have reach the Enchantment Max!"
- else:
- send ""
- send "{@p} &eYou have Enchanted your pickaxe."
- send ""
- set the 2nd line of the tool's lore to "&7Lucky I"
- set {lucky.%player%} to true
- remove 20 from {Tokens.%player%}
- else:
- send "{@p} &eYou dont have enough tokens"
- command /dura123:
- trigger:
- if {Tokens.%player%} is greater than or equal to 10:
- if lore of tool does not contain "&7Durability I":
- message "{@p} You have reach the Enchantment Max!"
- else:
- send ""
- send "{@p} &eYou have Enchanted your pickaxe."
- send ""
- set the 1st line of the tool's lore to "&7Durability I"
- set {dura.%player%} to true
- remove 10 from {Tokens.%player%}
- else:
- send "{@p} &eYou dont have enough tokens"
- command /unbreaking123:
- trigger:
- if {Tokens.%player%} is greater than or equal to 2:
- if tool is enchanted with unbreaking 10:
- message "{@p} You have reach the Enchantment Max!"
- else:
- send ""
- send "{@p} &eYou have Enchanted your pickaxe."
- send ""
- remove 2 from {Tokens.%player%}
- evaluate "enchant player's tool with unbreaking %level of unbreaking of player's tool + 1%"
- else:
- send "{@p} &eYou dont have enough tokens"
- command /dua123:
- trigger:
- if {Tokens.%player%} is greater than or equal to 5:
- if lore of tool contains "&7Durability I":
- message "{@p} You have reach the Enchantment Max!"
- else:
- send ""
- send "{@p} &eYou have Enchanted your pickaxe."
- send ""
- remove 5 from {Tokens.%player%}
- set {dura.%player%} to true
- else:
- send "{@p} &eYou dont have enough tokens"
- command /fortune123:
- trigger:
- if {Tokens.%player%} is greater than or equal to 5:
- if tool is enchanted with fortune 5:
- message "{@p} You have reach the Enchantment Max!"
- else:
- send ""
- send "{@p} &eYou have Enchanted your pickaxe."
- send ""
- remove 5 from {Tokens.%player%}
- evaluate "enchant player's tool with fortune %level of fortune of player's tool + 1%"
- else:
- send "{@p} &eYou dont have enough tokens"
- command /iron:
- trigger:
- if player has 1 stone_pickaxe:
- if {Tokens.%player%} is greater than or equal to 30:
- remove 1 stone_pickaxe from player
- set slot 4 of player to 1 iron_pickaxe of unbreaking 1 named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- remove 30 from {Tokens.%player%}
- else:
- message "{@p} &eYou dont have enough tokens."
- else:
- message "{@p} &eYou do not have a stone pickaxe."
- command /diamond:
- trigger:
- if player has 1 iron_pickaxe:
- if {Tokens.%player%} is greater than or equal to 50:
- remove 1 iron_pickaxe from player
- set slot 4 of player to 1 diamond_pickaxe of unbreaking 1 named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
- remove 50 from {Tokens.%player%}
- else:
- message "{@p} &eYou dont have enough tokens."
- else:
- message "{@p} &eYou do not have a iron pickaxe."
- on mine of coal ore:
- if {vein.%player%} is true:
- loop blocks in radius 2 around event-block:
- loop-block is equal to coal ore
- set loop-block to air
- damage player's tool by 1
- if player has space for (1 of coal):
- give player (1 of coal)
- else:
- drop (1 of coal) at (location 0.5 above player)
- drop 1 xp at player
- on mine of iron ore:
- if {vein.%player%} is true:
- loop blocks in radius 2 around event-block:
- loop-block is equal to iron ore
- set loop-block to air
- damage player's tool by 1
- if player has space for (1 of iron ore):
- give player (1 of iron ore)
- else:
- drop (1 of iron ore) at (location 0.5 above player)
- on mine of gold ore:
- if {vein.%player%} is true:
- loop blocks in radius 2 around event-block:
- loop-block is equal to gold ore
- set loop-block to air
- damage player's tool by 1
- if player has space for (1 of gold ore):
- give player (1 of gold ore)
- else:
- drop (1 of gold ore) at (location 0.5 above player)
- on mine of lapis lazuli ore:
- if {vein.%player%} is true:
- loop blocks in radius 2 around event-block:
- loop-block is equal to lapis lazuli ore
- set loop-block to air
- damage player's tool by 1
- if player has space for (6 of lapis lazuli):
- give player (6 of lapis lazuli)
- else:
- drop (6 of lapis lazuli) at (location 0.5 above player)
- drop 1 xp at player
- on mine of redstone ore:
- if {vein.%player%} is true:
- loop blocks in radius 2 around event-block:
- loop-block is equal to redstone ore
- set loop-block to air
- damage player's tool by 1
- if player has space for (4 of redstone):
- give player (4 of redstone)
- else:
- drop (4 of redstone) at (location 0.5 above player)
- drop 1 xp at player
- on mine of stone:
- if {vein.%player%} is true:
- loop blocks in radius 2 around event-block:
- loop-block is equal to stone
- set loop-block to air
- damage player's tool by 1
- if player has space for (1 of stone):
- give player (1 of stone)
- else:
- drop (1 of stone) at (location 0.5 above player)
- drop 1 xp at player
- on mine of diamond ore:
- if {vein.%player%} is true:
- loop blocks in radius 2 around event-block:
- loop-block is equal to diamond ore
- set loop-block to air
- damage player's tool by 1
- if player has space for (1 of diamond):
- give player (1 of diamond)
- else:
- drop (1 of diamond) at (location 0.5 above player)
- drop 1 xp at player
- on mine of emerald ore:
- if {vein.%player%} is true:
- loop blocks in radius 2 around event-block:
- loop-block is equal to emerald ore
- set loop-block to air
- damage player's tool by 1
- if player has space for (1 of emerald):
- give player (1 of emerald)
- else:
- drop (1 of emerald) at (location 0.5 above player)
- drop 1 xp at player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement