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

CanPlaceOn affects more than placing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 1.18.1, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b, 1.21.1, 1.21.4
    • None
    • Confirmed
    • Player

      While not necessarily wrong behavior, it is unintuitive.

      The CanPlaceOn NBT can make other forms of interaction possible as well, such as waxing copper blocks, using spawn eggs, turning blocks into farmland and dirt path, etc.

      Steps to reproduce:

      1. Go to adventure mode
      2. Get a normal shovel
      3. Try converting a grass block to dirt path
      4. Nothing happens
      5. Use
        /give @s wooden_shovel{CanPlaceOn:["minecraft:grass_block"]}
      6. Try with the new shovel
      7. It works, even though you don't *place* anything.

      This is untintuitive as it's not placement but interaction.
      I'd suggest renaming the NBT (and changing the corresponding lore) to use "use" instead of "place" to make this a lot more clear to players.

            Unassigned Unassigned
            jirauser71590 user-f2760 (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: