Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-171381

The itemUseOn event doesn't fire when your mainhand is empty.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.20.0
    • None
    • Unconfirmed
    • Windows

      Expected Behavior: When interacting on a block with an empty mainhand, the beforeEvents.itemUseOn event is fired, as well as the afterEvents.itemUseOn event.

      Current Behavior: When interacting on a block with an empty mainhand, these events no longer fire. This behavior does not occur when interacting with an item in your mainhand.

      This issue only occurs when using the 1.3.0-beta version of the minecraft-server module or later in behavior packs.

       

      Sample Code:
       

      world.beforeEvents.itemUseOn.subscribe((data) => {console.warn(1) })

       

            PalmMC PalmMC
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: