How to make an item only break certain blocks after applying the enchantment and unbreakable parts of the command? [duplicate]

How to make an item only break certain blocks after applying the enchantment and unbreakable parts of the command? [duplicate] - Crop young lady breaking eggs in flour for dough

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)



Best Answer

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.




Pictures about "How to make an item only break certain blocks after applying the enchantment and unbreakable parts of the command? [duplicate]"

How to make an item only break certain blocks after applying the enchantment and unbreakable parts of the command? [duplicate] - Crop faceless toddler sitting on bed with colorful wooden building blocks while mother sitting with legs crossed doing remote work with laptop on knees on background
How to make an item only break certain blocks after applying the enchantment and unbreakable parts of the command? [duplicate] - Person breaking egg to flour for pastry
How to make an item only break certain blocks after applying the enchantment and unbreakable parts of the command? [duplicate] - High angle of crop anonymous chef breaking eggs for cooking dough at table with flour



How do you make it so that an item can only break certain blocks?

In adventure mode, players can only break blocks with the right tool. For example, a pickaxe cannot break a Log, a shovel cannot break stone blocks, and an axe cannot break Dirt....Trivia
  • Adventure mode was originally called "Dungeons and Levers".
  • Adventure mode is the fourth game mode added to Minecraft.




✔️ How To Use Minecraft Enchant Command + How To Enchant Players Items When On Certain Blocks! ✔️




More answers regarding how to make an item only break certain blocks after applying the enchantment and unbreakable parts of the command? [duplicate]

Answer 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"]}

Answer 3

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"]}

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Katerina Holmes, Tatiana Syrikova, Klaus Nielsen, Klaus Nielsen