Why is my spawner changing into a pig spawner after its first spawn?

Solution 1:

so, you are probably making a game that involves sub-zero hail attacking right? well I think you can just use the summon command to summon a lot. if you don't want it spawning at the speed of repeat command blocks, use a redstone timer. if you want to spawn the llama spit at a random time, use execute at @e[type=armor_stand, limit=1, sort=random, tag=spit] run setblock ~ ~ ~ redstone_block and then add some armor stands with the tag spit which only one of them with the summon command.

Edit: lol I just noticed that the question is why it turns into a pig spawner, but still, I think you should use the summon method because then you can choose when to start summoning and if you want the player to actually see the spawner I think you can just use a texture pack