[1.15] VehicleBlockCollisionEvent not triggered with boats

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:
      • 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

          [SPIGOT-5463] [1.15] VehicleBlockCollisionEvent not triggered with boats

          catangent added a comment -

          still doesnt work in paper 1.18

          catangent added a comment - still doesnt work in paper 1.18

          Ok i reviewed the code this event is very broken im putting in a recommendation to deprecate this event im sorry if you wanted to use this event doesn't seem fixable to me

          TheCreeperCow added a comment - Ok i reviewed the code this event is very broken im putting in a recommendation to deprecate this event im sorry if you wanted to use this event doesn't seem fixable to me

          Ok this issue is quite serious the event only triggers if there are no passengers in the boat and when it triggers it reports back the wrong block it reports the block under the vehicle (boat as well as minecarts) instead of the colliding block 

          TheCreeperCow added a comment - Ok this issue is quite serious the event only triggers if there are no passengers in the boat and when it triggers it reports back the wrong block it reports the block under the vehicle (boat as well as minecarts) instead of the colliding block 

          Seems to be related indeed 

          TheCreeperCow added a comment - Seems to be related indeed 

          Eccentric Devotion added a comment - Could be related? https://hub.spigotmc.org/jira/browse/SPIGOT-5510

          TheCreeperCow added a comment - - edited

          Either this is by design or a oversight ill have a look at the code later and see which one of the two it is and if i can fix it for you

          TheCreeperCow added a comment - - edited Either this is by design or a oversight ill have a look at the code later and see which one of the two it is and if i can fix it for you

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

              Created:
              Updated: