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

    • Icon: Bug Bug
    • Resolution: Fixed
    • 19w37a
    • Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c, 1.14.4 Pre-Release 7, 1.14.4
    • None
    • Confirmed
    • (Unassigned)

      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.

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

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

              Created:
              Updated:
              Resolved:
              CHK: