Topic category: Help with modding (Java Edition)
I have a block which spawns mobs around it each time it randomly ticks. But it's also supposed to only do this three times, via using several blocks and replacing itself with the next stage after spawning entities three times, using a local variable that goes up every time it activates. If block at xyz = Spawner1, replace block at xyz with Spawner2, If block at xyz = Spawner2, replace block at xyz with Spawner3
However, this does not work. I have no idea why.
Here's a screenshot of the full procedure each of the spawner blocks uses (Except for the last stage, because that is when the spawner is set to deactivate)