Indirect block break?

Discussion in 'Spigot Plugin Development' started by Eliminator, May 31, 2016.

  1. Hey, anyone know what event gets fired when a block breaks due to water flowing in it, or someone breaking its support block?
     
  2. I'm not really sure about this one, I've looked on the many different events. There's things like BlockMultiPlaceEvent which tracks players making structures like beds, but I don't know how to reverse that. All the types of breaking should be in BlockBreakEvent in terms of player, but there are natural ones like BlockFromToEvent which tracks water/lava, BlockIgniteEvent, and so on. Since multi-structural blocks have different parts like Lower side of the bed, then you could easily find the higher side of the bed by seeing it's direction whenever one breaks I'm guessing.
     
  3. I would assume BlockBreakEvent. Did you try it or are you just asking so you know?
     
  4. Yes. BlockBreakEvent does not fire from either of the reasons I mention up top.