Topic category: Help with modding (Java Edition)
It seems I can't cause block number NBT tags to decrease properly. I know I've done this successfully before, but I think I've just made a mistake somewhere and am not aware of it. Basically I'm trying to make a block with a number NBT that will decrease every tick until reaching 0. When an entity collides with it, it should set the cooldown to 100, and then not be able to trigger again until the cooldown is over. That way, standing in the block would cause the collision event to trigger only every 5 seconds. What is happening to me is that colliding with the block does set the value to 100, but it never seems to decrease, which means it can never be reactivated.
Here are my procedures. https://imgur.com/a/ZHhdPrD