#Cancel falling block conversion to item
1 messages · Page 1 of 1 (latest)
Cancel the EntityChangeBlockEvent or whatever its called
Wait you mean if the Block doesnt hit another solid Block?
This event is not trigger because the falling block (an entity) doesn't change the block, at the opposite, the block convert this falling block as Item (an other entity).
Then look for the EntityDeathEvent
Doesn't triggered too 😢
Maybe the entity is not considered dead…
Weird… The entity should die…
I reconfirm that falling blocks are not affected by the event EntityDeathEvent.
I try to review the code to find why but I can not find it.
Falling Blocks call EntityBlockChangeEvent ?
if you want it to destroy some blocks you could try creating a custom falling block which @override the tick() method or smth else and break specific blocks from there
Pretty good idea
If I say "I review the code" you can be sure I find that interface method…
Also, I have auto compilation btw…
Let me guess, you’re on an ancient version
1.16.5 is an "ancient" version ??
almost
If it doesn’t have that method it is
Nope, I have this method and it is not the solution I searching…
EntityDropItemEvent
Is called when a falling block lands on a torch for example
I mean that method does work
Works for the item but that doesn't keep alive the falling block, right ??
Nope but you can remove the drop and set a block on the entities location
Maybe be I can find that part of code that should be prevent "convertion".
Oh, it is a really great idea 👏
Thanks you very much, I was don't thinking about this type of solution 😆😅