2

My command is

give @p stone_pickaxe 1 0 {
    display:{
        Name:"Level 1 Pickaxe",
        Lore:["A basic pickaxe."]
    },
    ench:[{
        id:32,lvl:1
    }],
    Unbreakable:1
} {
    CanDestroy:["minecraft:stone","minecraft:stonebrick"]
}

How would i add the next part? (only allowed to break stone blocks)

  • 2
    You're going to have to add some more information. What is "The next part"? I'm assuming the CanDestroy command? If so, part of the problem is that it does not belong to the same command. – Ben Jul 17 '16 at 23:02
2

In Adventure Mode you can only break blocks featured in the CanDestroy tag of the held item. Otherwise the character won't even try to break the block. So just set the player to Adventure Mode.

2

I'm not sure what you are asking, but I noticed that your command has some errors. Here's the revised command:
give @p stone_pickaxe 1 0 {display:{Name:"Level 1 Pickaxe",Lore:["A basic pickaxe."]},ench:[{id:32,lvl:1}],Unbreakable:1,CanDestroy["minecraft:stone","minecraft:stonebrick"]}

0

Try this command:

/give @p stone_pickaxe 1 0 {display:{Name:"Level 1 Pickaxe",Lore:["A basic pickaxe."]},ench:[{id:32,lvl:1}],Unbreakable:1,CanDestroy["minecraft:stone","minecraft:stonebrick"]}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.