Minecraft wiki entry for End_Poem, associated text: In Java Edition, The End Poem and credits are stored in client.jar; the text of the End Poem is located in assets/minecraft/texts/end.txt, the text of the credits is in assets/minecraft/texts/credits.json, and the text of the quote is in assets/minecraft/texts/postcredits.txt. In Bedrock Edition, the text of the End Poem is located in data/credits/end.txt, the text of the credits is in data/credits/credits.json, and the text of the quote is in data/credits/quote.txt. They can both be edited with a resource pack. The first speaker's dialog uses the formatting code §3 (or dark aqua), and the second speaker's uses §2 (or dark green). The player's name is inserted with PLAYERNAME, and the scrambled text is stored as §f§k§a§b. The poem is shown the first time the player enters the exit portal based on their  seenCredits‌[JE only] ( hasSeenCredits‌[BE only]) tag being 0 (false), after which it is changed to 1 (true) once the player enters the exit portal.