Event when a block support is broken
Introduction
Currently, when a block is broken because its support is broken, we can't modify the drops as in blockbreakevent, which can create duplication bugs in our plugins
I've searched all the uses of the "useBreakOn" function without a player is linked to a broken block because its support has been broken
The name of the event seems a bit off, but I can't think of anything else to say in English
What exactly do you mean by support?
What exactly do you mean by support?
Support block, when the block holding the seeds, for example, is broken, this event is called for the seed block
This could be very useful, but the name needs to be revised. Alternatively, why not modify the blockbreak event so that it can be called here?
Messing with existing events would break BC.
I don't think this is the best name for this type of event. In any case, changing the BlockBreak event isn't the best solution either.
Really BlockBreakEvent itself is mis-named (it should be PlayerBlockBreakEvent).
Removal of support isn't the only case in which a block will get destroyed without a player present. For example, water flowing into a block will destroy it, triggering this event.
So what name could be representative?
I don't have a problem with it personally. My only issue is that this will currently be called in cases where there wasn't any support to begin with.
Really BlockBreakEvent itself is mis-named (it should be PlayerBlockBreakEvent).
Removal of support isn't the only case in which a block will get destroyed without a player present. For example, water flowing into a block will destroy it, triggering this event.
So why not create a PlayerBlockBreakEvent and a BlockBreakEvent ?
Really BlockBreakEvent itself is mis-named (it should be PlayerBlockBreakEvent). Removal of support isn't the only case in which a block will get destroyed without a player present. For example, water flowing into a block will destroy it, triggering this event.
So why not create a PlayerBlockBreakEvent and a BlockBreakEvent ?
That's a big change that will break a lot of plugins
Really BlockBreakEvent itself is mis-named (it should be PlayerBlockBreakEvent). Removal of support isn't the only case in which a block will get destroyed without a player present. For example, water flowing into a block will destroy it, triggering this event.
So why not create a PlayerBlockBreakEvent and a BlockBreakEvent ?
That's a big change that will break a lot of plugins
Yes, so why not do it for PM6?
Really BlockBreakEvent itself is mis-named (it should be PlayerBlockBreakEvent). Removal of support isn't the only case in which a block will get destroyed without a player present. For example, water flowing into a block will destroy it, triggering this event.
So why not create a PlayerBlockBreakEvent and a BlockBreakEvent ?
That's a big change that will break a lot of plugins
Yes, so why not do it for PM6?
Just because we have a major version doesn't mean we should just break plugins. The benefits of making a BC break need to be weighed against the costs of changing it.