You know how some contraptions use spawneggs and then they spawn something else?
I'm trying to achieve that but I failed many times.
i.e. Using squid spawnegg named CAM
CAM disappears a split second after spawning
it creates a tower in its location.
How can I do that? I tried using /kill but it's really slow.