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

Several block actions do not trigger the "minecraft:item_used_on_block" advancement trigger

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 20w20a, 1.16.2
    • None
    • None
    • Confirmed
    • Data Packs
    • Low

    Description

      Some actions do not trigger the minecraft:item_used_on_block advancement trigger.

      Affected actions:

      • Placing or picking up water/lava
      • Waterlogging blocks with a bucket
      • Interacting with redstone ore
      • Placing boats, lily pads, summoning mobs on water

      How to reproduce:

      1. Create the following advancement, and save it as mojira:use_item

      {
        "criteria": {
          "used": {
            "trigger": "minecraft:item_used_on_block"
          }
        },
        "rewards": {
          "function": "mojira:item_used"
        }
      }
      

      2. Create the following function, and save it as mojira:item_used

      advancement revoke @s only mojira:use_item
      say An item was used
      

      Alternatively, install the data pack from MC-183804.
      A message is now sent in chat every time the item_used_on_block trigger triggers.
      3. Pick up water with an empty bucket.
      No message appears.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Aeldrion Aeldrion
              Votes:
              5 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: