Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-37871

can_destroy and can_place_on do not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.6.1
    • None
    • Creative
    • Unconfirmed
    • Tablet - iOS - iPad 4

      I have spent countless hours searching the internet for the syntax for the can_destroy and can_place_on components and always get the same answers. However, when I put these syntax in, I always get these silly errors of “Unexpected [x] at [y] position.” I check every character I type and it always matches the syntax I find on the forums.

       

      EDIT: I think I have found the source of the problem. The smaller font that is used when a ‘ or “ is typed is glitching the syntax. The only way I could get it to work was by pasting in the “ from an external source, which conveniently keeps the old font. 

       

      The command used was /give @p wooden_pickaxe 1 0 {“minecraft:can_destroy”:{“blocks”:[“stone”]}} I found that the bug applied to other commands as well, but this was the first one I tried.

            Orangelightning3 Quinn Dagenais
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: