Topic category: Help with Minecraft modding (Java Edition)
https://postimg.cc/rdDcb2sv
I don't know how to embed this screenshot properly, but I couldn't find a proper way to post this.
So what I was trying to do was add a feature into a specific block that allowed the block to be brushable. While it is being brushed, it sets off a timer that would be made to go off every 19-20 seconds, the custom block property integer named wearoff_time. As soon as this value would be less than or equal to 1, the property would reset if the integer itemscontained had a number greater than 1, and a poof of particles would appear. There would be a 30% chance that the poof of particles would release a random item from a loot table. When the itemscontained integer has a number less than or greater than zero, the block breaks.
I don't know how to incorporate this, or if this is already well incorporated, what I'm doing wrong and how can I fix it.