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

[1.15] VehicleBlockCollisionEvent not triggered with boats

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
      • Java 1.8, Mac, Local server, only 1 player connected
      • also tested with Paper 23 (1.15.1), same results.
    • CraftBukkit version git-Spigot-047b6f8-61d4b09 (MC: 1.15) (Implementing API version 1.15-R0.1-SNAPSHOT)
    • none
    • Yes

      VehicleBlockCollisionEvent event is not triggered when in a boat:

      • I've tested same code with minecart => VehicleBlockCollisionEvent triggered
      • Tested by colliding solid blocks around the water => nothing
      • Tested by colliding lilipads in water (and so break them) => nothing
      • Tested with @EventHandler(ignoreCancelled = false) => nothing

      On the contrary (but maybe the attendee result), VehicleEntityCollisionEvent triggers constantly even when NOT moving (I suppose every ticks) between the player and the boat. In a Minecart, it also trigger often but only when moving.

      Attached code is a simple class which print in console the name of the event triggered for both VehicleBlockCollisionEvent & VehicleEntityCollisionEvent.

      See this discussion:

      https://www.spigotmc.org/threads/how-to-check-collision-for-boat.408472

            Unassigned Unassigned
            arboriginal arboriginal
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: