Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-207054

CanDestroy drops CanPlaceOn nbt value on retrieved item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.16.4
    • None
    • Unconfirmed
    • Adventure
    • (Unassigned)

      For adventure mode I can place items created with CanPlaceOn and then use other items to pick them up using CanDestroy, however when the destroyed item is retrieved it no longer has any nbt data it was given, including the CanPlaceOn tag so it can't be placed again.

      To reproduce I use these commands to give myself a bed that I can place in adventure mode, and an axe I can use to break and retrieve the bed:

      give @p brown_bed{CanPlaceOn:["grass_block"]}
      give @p iron_axe{CanDestroy:["brown_bed"]}

      But after retrieving the brown_bed it can no longer be placed again.

            Unassigned Unassigned
            kk64738 Ken
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: