you put the carved pumpkin on the different mobs and have the background set to the graveyard and just let the piston do the rest