custom spawn

i want to make a mob spawn after a player drops a stick but the player would get a message that he then needs to drop a specific amount of cobblestone till the mob spawns i dont know if that is even possible or if there are other methods like dropping 2 items on the ground and the mob then spawns
Continue to help post