Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7073

PlayerInteractEvent doesn't fire if player were to left click a block, but an entity is blocking it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version 3498-Spigot-b081915-10ba1be (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT)
    • Yes

      As demonstrated here, PlayerInteractEvents fire when left-clicking the zombie on the right (without blocks behind). When left-clicking the zombie on the left (with a stone block behind them) no events are fired at all where I would expect them to be fired. I think this is because in this scenario I am too far from the zombie to attack them, but close enough to be able to target the block behind if the zombie wasn't in the way. If I move further back, to where I couldn't target the block any more, events would start firing again.

      Attachment given in streamable and mp4 format in case the mp4 format doesn't work, as well as a tiny plugin to test it if needed. the plugin also gives instructions when someone joins the server

      https://streamable.com/egrkvq

       

        1. egrkvq_1.mp4
          3.03 MB
          Athlaeos

            Unassigned Unassigned
            Athlaeos Athlaeos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: