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

Buckets' CanPlaceOn NBT check is applied to the block behind

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c, 1.14.4 Pre-Release 7, 1.14.4
    • Fix Version/s: 19w37a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      When using a bucket in adventure mode, the logic that checks that the clicked block is listed in the bucket's CanPlaceOn tag is applied to the block behind the one the player clicked. For example, if the player clicked the top face of a block, the check is applied to the block below.

      How to reproduce

      1. /gamemode adventure
      2. /give @p water_bucket{CanPlaceOn:["minecraft:grass_block"]}

        Clicking on a grass block that does not have a grass block behind it does not place water.
        Clicking on any block that has a grass block behind it places water.

      3. /give @p bucket{CanPlaceOn:["minecraft:water"]}

        Clicking on water that does not have water behind it does not pick up the water.

        Attachments

        1. 2018-08-27_18.47.18.png
          263 kB
          qmagnet
        2. 2018-08-27_18.48.16.png
          568 kB
          qmagnet
        3. not work.png
          210 kB
          Christie N
        4. works.png
          202 kB
          Christie N

          Issue Links

            Activity

              People

              Assignee:
              cojomax99 [Mojang] Cory Scheviak
              Reporter:
              kwerti Christie N
              Votes:
              27 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: