Started by
Warwickslave
on
Topic category: Help with Minecraft modding (Java Edition)
I have a layerable block working similar to candles or pink petals, so I made it stackable using blockstates and its piston interaction is set to "destroy". Is there a way to make it drop items depending on blockstate when pushed by a piston, or should I make them as independent blocks with drops?
Tried to make a procedure with global trigger "when block is destroyed". Works with player destroying the block but with piston still nothing.
Edited by Warwickslave on Thu, 10/16/2025 - 12:20
if you use a loot table for your block you can lock it, the loot table, and use block state property conditions like how vanilla does it,
Misode is a great website for generating all sorts of data related files for minecraft. You can use the presets to base your loot table off
https://misode.github.io/loot-table/?version=1.21.4
Thank you!!! Saving my day one more time 🙂