0

I need a Custom crafting with the option of destroying specific blocks (Canbreak command)

I need this creation but with the addition on the created object status "canbreak oak_log"

    "type": "minecraft:crafting_shaped",
    "pattern": [
        " # ",
        "W  ",
        "   "
    ],
    "key": {
        "#": {
            "item": "minecraft:flint"
        },
        "W": {
            "item": "minecraft:wooden_axe"
        }
    },
    "result": {
        "item": "minecraft:wooden_axe",
        "count": 1
    }
}


I tried to do it this way but i have no effect

{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        " # ",
        "W  ",
        "   "
    ],
    "key": {
        "#": {
            "item": "minecraft:flint"
        },
        "W": {
            "item": "minecraft:wooden_axe"
        }
    },
    "result": {
        "item": "minecraft:wooden_axe{CanDestroy:["minecraft:oak_wood"]}",
        "count": 1
    }
}
4

0

Browse other questions tagged .