Started by
WenXin2
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I am trying to figure out how I can detect when a custom leaf block decays. I would like to make it so that there is a certain chance that it drops a custom sapling, but so far nothing has worked for me.
I've tried to check for when the block is destroyed, but that doesn't seem to detect decaying leaves.
Thanks!
Use leave block base.
That's what I'm using, but it drops the sapling 100% of the time, so I have to use a procedure to change it's drop rate, but it's not detecting when leaves decay.
I don't think there is a way to detect this. Try changing drops using loot tables instead.
This is the procedure I'm using, but it is not dropping when the leaves decay, only when a block is broken.
you don't need to do this.
Use loot tables instead.
also loot tables only work on 1.14
I hadn't thought of that, thanks!
no problem!