1.12.2 Cancel Lava Damage when riding boat

Discussion in 'Spigot Plugin Development' started by YangJJune, Jan 26, 2020.

  1. At first, I tried to do with VehicleDestroyEvent, it failed because I cannot get DamageCause.
    Now I'm trying with EntitryDamageEvent. But also I don't know how to do.

    Is there any tip? At least what event should I use?
     
  2. going on a limb here, but you could use the VehicleDestroyEvent and check for the block below (or maybe its the block at) the vehicle, if its lava, cancel the event.
     
  3. Good Idea! Thanks
     
    • Friendly Friendly x 1
  4. OOPS sorry I meant use the VehicleDamageEvent... that would probably be a better idea.
     
  5. Don't mention it. Because I didn't tried yet lol
     
    • Friendly Friendly x 1