Solved Prevent Minecart From Breaking

Discussion in 'Plugin Development' started by Smeary_Subset, Jun 24, 2022.

  1. Offline


    I need help preventing a minecart from breaking via player punching, explosions, arrows, and any other ways it could break.

    So far I'm trying to prevent player punches from breaking it. I've tried PlayerInteractEntityEvent, EntityDamageByEntityEvent, and PlayerInteractEvent. Nothing has worked when it comes to left clicking it.

    Any ideas?
  2. Offline


    Have you tried cancelling VehicleDamageEvent or VehicleDestroyEvent?
    Last edited: Jun 24, 2022
    DopeBrot likes this.
  3. Offline


    Awesome, just tried that and that worked. Thank you. Solved

Share This Page