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

Certain failed block right-click actions take precedence over right-click actions of items, also causing hand animations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 19w44a, 19w45a, 19w46a, 1.15 Pre-release 1, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w20a, 20w21a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16.1, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2, 1.16.3
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Player
    • Mojang Priority:
      Low

      Description

      When an item with a right click action (tested here using a fishing rod) is used while aiming at a block which has another right click action which is not relevant to the held item (tested here with flower pots and signs), the block's right-click action takes precedence over the item's. Since the right click action of the block neither opens a GUI (as in storage containers, enchantment tables, command blocks, etc.) nor does it toggle a block state (as in doors, levers, buttons, berry bushes and others), one would expect the item's action to override the block's. However, this is not the case.

      Currently affected blocks are:

      • signs (see MC-166885)
      • wall signs (see MC-166885)
      • flower pots (see MC-195095, do not cause hand animation); see also the special case MC-193010
      • lecterns (see MC-195095, do not cause hand animation)
      • bells (ringing; this doesn't fall under a blockstate change or gui opening, so probably not intended)
      • dragon eggs (when they can't teleport)
      • cake (only if the item to be used is in the offhand and the main hand is empty, see MC-114718; does not cause hand animation)
      • beds (if they cannot set the spawn point)
      • chests (when obstructed)
      • trapped chests (when obstructed)
      • ender chests (when obstructed)
      • shulker boxes (when obstructed)

      Pressed-in buttons also block right click actions in a manner similar to flower pots, however this behaviour should be kept to stop accidental item use when pressing buttons.

      Note blocks are not included here as right clicking obstructed note blocks does indeed change their block states, however this is difficult to notice.

        Attachments

        1. 2019-09-12_00.44.33.png
          2019-09-12_00.44.33.png
          787 kB
        2. 2019-09-12_00.44.46.png
          2019-09-12_00.44.46.png
          519 kB
        3. 2019-09-12_00.44.58.png
          2019-09-12_00.44.58.png
          599 kB
        4. 2019-09-26_23.44.05.png
          2019-09-26_23.44.05.png
          233 kB
        5. 2019-09-26_23.44.11.png
          2019-09-26_23.44.11.png
          656 kB

          Issue Links

            Activity

              People

              Assignee:
              cojomax99 [Mojang] Cory Scheviak
              Reporter:
              Awesoman3000 Connor Steppie
              Votes:
              23 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: