The six-eared macaque did not actually die. He was just taken into a magical instrument by the Tathagata and taken into another dimension.
The moment the golden bowl was clicked, the six-eared macaque thought that it would lose its soul, but unexpectedly fell into a chaotic void.
"This is beyond cause and effect." Tathagata's voice came from all directions, "The difficulty of the real and fake Monkey King should have destroyed both your body and soul. But the Three Realms need a stick to stir up destiny."
The six-eared macaque sneered: "Old bald donkey, you want me to be your chess piece?"
"No, it's cooperation." Tathagata's voice was as calm as water. "Did you know that seeking scriptures from the Western Heaven is a carefully choreographed drama? Sun Wukong is destined to become a Buddha, but you, the six-eared macaque, are the real variable."