You can do that. If you set the spawner to spawn when the GoldSword is present, it should work. You have to make sure you enter the correct item in the TriggerOnCarried field in the [props window of the spawner. If you want a spawner to spawn a mob with speech, you need to set it in the SpeechTrigger. You probably don't want to use the whole phrase, if people mispell it, it won't spawn, just a thought. Set either or of the above options, then set the spawner to SpawnOnTrigger and you should be good to go.