X

NOTICE

Are you sure you want to report this?

We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

2

/can_destroy and /can_place_on

2 Comments

Post a new comment:

Please sign in to leave a comment.

  • 0
    Unbiunium commented
    Comment actions Permalink

    You mean the NBT tag of similar name?

    /give @s stone_pickaxe{CanDestroy:["minecraft:stone"]}

    /give @s oak_planks{CanPlaceOn:["minecraft:stone"]}

  • 0
    Plagiatus commented
    Comment actions Permalink

    /can_destroy and /can_place_on have never been commands, ever. They are components/NBT that you can add to an item.

    The way it works is you give a player an item like this.

    Bedrock:

    /give @p dirt 1 0 {"can_place_on":{"blocks":["wool"]}}

    Java:

    /give @p dirt{CanPlaceOn:["minecraft:white_wool"]

    And these commands work just fine in the current game, there is no need to fix anything.