MrGarretto's One-Command Creations

Giving the modded minecraft feeling to vanilla

Better Pickaxes command
About this command
This command fixes the useless tiers of pickaxes, and gives certain pickaxes better features, and limits.
Show source commands

INIT:/scoreboard objectives add BPi_UseGold stat.useItem.minecraft.golden_pickaxe
INIT:/scoreboard objectives add BPi_UseDiamond stat.useItem.minecraft.diamond_pickaxe
INIT:/scoreboard objectives add BPi_UseIron stat.useItem.minecraft.iron_pickaxe
INIT:/scoreboard objectives add BPi_isADiamond dummy
INIT:/scoreboard objectives add BPi_isACobble dummy
INIT:/scoreboard objectives add BPi_StateRusted dummy
INIT:/scoreboard objectives add BPi_HoldIron dummy
INIT:/scoreboard objectives add BPi_HoldStone dummy
INIT:/tellraw @a [{color:"gold",text:"The Better Pickaxes "},{color:"dark_aqua",text:"module has been installed!"}]
# Gold pickaxes
/execute @a[score_BPi_UseGold_min=2] ~ ~ ~ summon Item ~ ~ ~ {Item:{Count:1,id:gold_nugget}}
# Diamond pickaxes
/scoreboard players set @e[type=Item] BPi_isADiamond 1 {Item:{id:minecraft:diamond}}
/execute @a[score_BPi_UseDiamond_min=1] ~ ~ ~ execute @e[type=Item,score_BPi_isADiamond_min=1,r=6] ~ ~ ~ summon Item ~ ~ ~ {Item:{tag:{display:{Name:"Crushed Diamonds",Lore:["Diamond pickaxes are too","powerful to keep diamonds","intact! Use an iron pickaxe!"]}},Count:1, id:prismarine_crystals}}
/execute @a[score_BPi_UseDiamond_min=1] ~ ~ ~ kill @e[type=Item,score_BPi_isADiamond_min=1,r=6]
/scoreboard players set @a[score_BPi_UseDiamond_min=1] BPi_UseDiamond 0
# Iron pickaxes
/scoreboard players set @a BPi_HoldIron 0
/scoreboard players set @a BPi_StateRusted 0
/scoreboard players set @a BPi_HoldIron 1 {SelectedItem:{id:minecraft:iron_pickaxe,tag:{display:{Name:"Rusted Iron Pickaxe",Lore:"rusted"}}}}
/clear @a iron_pickaxe 140 0
# GOLD PICKAXE, used as a separator for /stats:
/scoreboard players set @a[score_BPi_UseGold_min=2] BPi_UseGold 0
/stats block ~-1 ~ ~ set SuccessCount @a BPi_StateRusted
/clear @a[score_BPi_StateRusted_min=1] iron_pickaxe 140 1
/give @a[score_BPi_StateRusted_min=1] iron_pickaxe 1 141 {display:{Name:"Rusted Iron Pickaxe",Lore:"rusted"}}
/tellraw @a[score_BPi_StateRusted_min=1] [{color:"red",text:"Your iron pick is now "},{color:"dark_red",text:"rusted!"}]
/execute @a[score_BPi_UseIron_min=1,score_BPi_HoldIron_min=1] ~ ~ ~ scoreboard players set @e[type=Item,r=6] BPi_isACobble 1 {Item:{id:minecraft:cobblestone}}
/execute @a[score_BPi_UseIron_min=1,score_BPi_HoldIron_min=1,] ~ ~ ~ execute @e[type=Item,score_BPi_isACobble_min=1,r=6] ~ ~ ~ summon Item ~ ~ ~ {Item:{tag:{display:{Lore:["Your pickaxe was rusted!"]}},Count:1, id:mossy_cobblestone}}
/execute @a[score_BPi_HoldIron_min=1] ~ ~ ~ kill @e[type=Item,score_BPi_isACobble_min=1,r=6]
/effect @a[score_BPi_HoldIron_min=1] 4 3 1 true
/scoreboard players set @a[score_BPi_UseIron_min=1] BPi_UseIron 0
# Stone pickaxes
/scoreboard players set @a BPi_HoldStone 0
/scoreboard players set @a BPi_HoldStone 1 {SelectedItem:{id:minecraft:stone_pickaxe}}
/execute @e[type=Guardian] ~ ~ ~ effect @a[score_BPi_HoldStone_min=1,r=60] 3 3 4 true

For Minecraft version 1.8.3
Click here for other versions of this command!
How to use
Give yourself a command block with /give @p command_block. Place it then paste the command from below into it. One command creations are similar to Minecraft mods, but are much easier to add to your world!
Click here for other versions of this command!