Topic category: Help with Minecraft modding (Java Edition)
I have a block that can only sustain under another block (done this with a placement condition) I also have a procedure that makes the block turn into an entity (falling block) when the block on top of it breaks. When the falling block reaches the floor, it despawns, dropping itself. I would want the entity to despawn but drop another item.
Context: I have a food that is a fruit hanging on a custom tree. As I can not make a block that is also a food (Like glow or sweet berries) I would like the block to drop a separated item, that is the food. I can do that by changing the drop of the block, but when it drops as a falling entity (Like dripstone does), it just drop itself, the block, instead of my custom drop, the food item.
Is what I want to do possible? I tried "Item is dropped" and "Entity falls" global triggers but they don't seem to work properly. Thanks in advance to anyone willing to help.