Hogwarts Map: Ultimate Project/Navigation Book Source Code

== What Brings Me Here? ==
Here is the code. Copy and paste the code into a command block (use /give @p command_block) in order to obtain the entire book because of the limitations regarding the number of characters.
Just a fair warning, this booklet will contain some commands that will take you to empty locations as of right now. This is not supported, and thus, will not be worked on. Do not be alarmed, as this will also contain updated coordinates and new already-available.
=== What's not available in Y20W08a? ===
* Ministry of Magic
* Diagon Alley
* New Forbidden Forest Location
* New Charms Classroom
* New Defense Against the Dark Arts Classroom(?)
* Cursed Vaults
* New Library Location
* New Quidditch Pitch Location
* Azkaban Prison
* Godric's Hallow
* Forest of Dean
* Lovegood Residence
* New Malfoy Manor
=== Problem With The Code? ===
Is the source code not doing its intended behavior, please let me know! I would love to hear your feedback to suggest improvements.
DieselDorky16 (talk) 09:25, February 10, 2019 (EST)
== Official Source Code ==
 /replaceitem entity @p[x=224,y=71,z=887,distance=..1] hotbar.0 written_book{pages:["[\"\",{\"text\":\"Welcome to Hogwarts!\",\"bold\":true,\"color\":\"red\"},{\"text\":\"\\n\\nThis map will guide your way throughout the school and \",\"color\":\"red\"},{\"text\":\"The Wizarding World of Harry Potter\",\"italic\":true,\"color\":\"red\"},{\"text\":\".\",\"color\":\"red\"},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Click here\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 224 71 887\"}},{\"text\":\" to return to spawn\\n \",\"color\":\"reset\"}]","[\"\",{\"text\":\"Classrooms\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Transfiguration\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 470 49 321\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"D.A.D.A\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 463 104 322\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Defence Against The Dark Arts\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Astronomy\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 477 164 317\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"History of Magic\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 319 49 264\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Muggle Studies\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 319 49 257\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Potions\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 425 25 371\"}},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"More to come soon...\",\"italic\":true}]","[\"\",{\"text\":\"The Four Houses\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Gryffindor\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 287 161 343\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Hufflepuff\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 331 34 304\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Ravenclaw\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 450 135 398\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Slytherin\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 447 14 345\"}}]","[\"\",{\"text\":\"More Places I\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Whomping Willow\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 323 61 -48\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Herbology\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 564 50 392\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Herbology Greenhouses\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Hagrid's Hut\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 290 29 -109\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"White Tomb\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 66 10 493\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Owlery\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 477 146 -14\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Boathouse\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 218 14 503\"}}]","[\"\",{\"text\":\"More Places II\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Beauxbaxtons\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 193 46 775\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Great Hall\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 219 50 354\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Grand Staircase\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 267 57 334\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Chamber of Secrets\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 499 12 372\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Viaduct Entrance\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 410 51 382\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Battlement Quads\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 320 96 314\"}},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"More to come soon...\",\"italic\":true}]","[\"\",{\"text\":\"Secret Locations\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Room of Requirement\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 291 6 336\"}},{\"text\":\"\\n\",\"color\":\"blue\"},{\"text\":\"Dungeon Chambers\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 371 64 316\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Prefect's Bath\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 420 92 392\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Myrtle's Bathroom\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 499 12 372\"}},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"More to come soon...\",\"italic\":true}]","[\"\",{\"text\":\"Outside Hogwarts\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Hogsmeade\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 421 82 868\"}},{\"text\":\"\\n\",\"color\":\"blue\"},{\"text\":\"Ministry of Magic\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 2136 103 1738\"}},{\"text\":\"\\n\",\"color\":\"blue\"},{\"text\":\"Grimmauld Place\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 1019 3 1034\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Malfoy Manor\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p -1949 12 -2038\"}},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"More to come soon...\",\"italic\":true}]","[\"\",{\"text\":\"Courtyards\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Entrance Ctyd\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 266 49 402\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Entrance Courtyard\"}},{\"text\":\"\\n\",\"color\":\"blue\"},{\"text\":\"Clocktower Ctyd\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 344 63 139\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Clocktower Courtyard\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"The Quad\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 342 48 286\"}},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"More to come soon...\",\"italic\":true}]","[\"\",{\"text\":\"Facilities\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Headmaster's Office\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 296 210 325\"}},{\"text\":\"\\n\",\"color\":\"blue\"},{\"text\":\"Slughorn's Office\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 381 81 235\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Hospital Wing\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 345 116 237\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"blue\"},{\"text\":\"Library\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 534 62 284\"}},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"More to come soon...\",\"italic\":true}]","[\"\",{\"text\":\"Other Locations\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Quidditch Pitch\",\"underlined\":true,\"color\":\"blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 805 46 114\"}},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"More to come soon...\",\"italic\":true}]","[\"\",{\"text\":\"Preferences\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Weather\",\"bold\":true,\"color\":\"dark_blue\"},{\"text\":\"\\n\",\"color\":\"reset\"},{\"text\":\"Rain\",\"underlined\":true,\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/weather rain\"}},{\"text\":\" \",\"color\":\"dark_blue\"},{\"text\":\"Shine\",\"underlined\":true,\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/weather clear\"}},{\"text\":\" \\n\",\"color\":\"dark_blue\"},{\"text\":\"Thunder\",\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/weather thunder\"}},{\"text\":\"\\n\\n\",\"color\":\"dark_blue\"},{\"text\":\"Time\",\"bold\":true,\"color\":\"dark_blue\"},{\"text\":\"\\n\",\"color\":\"dark_blue\"},{\"text\":\"Sunrise\",\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/time set 0\"}},{\"text\":\" \",\"color\":\"dark_blue\"},{\"text\":\"Noon\",\"underlined\":true,\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/time set 6000\"}},{\"text\":\" \\n\",\"color\":\"dark_blue\"},{\"text\":\"Sunset\",\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/time set 12000\"}},{\"text\":\" \",\"color\":\"dark_blue\"},{\"text\":\"Night\",\"underlined\":true,\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/time set 13000\"}},{\"text\":\"\\n\",\"color\":\"dark_blue\"},{\"text\":\"Midnight\",\"underlined\":true,\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/time set 18000\"}},{\"text\":\" \",\"color\":\"dark_blue\"}]","[\"\",{\"text\":\"Preferences (cont'd)\",\"bold\":true},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Gamemodes\",\"bold\":true,\"color\":\"dark_blue\"},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Grab a broomstick\",\"underlined\":true,\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/gamemode creative\"}},{\"text\":\"\\n\",\"underlined\":true,\"color\":\"dark_blue\"},{\"text\":\"Drop a broomstick\",\"underlined\":true,\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/gamemode survival\"}},{\"text\":\"\\n\\n\",\"color\":\"reset\"},{\"text\":\"Gamerules\",\"bold\":true,\"color\":\"dark_blue\"},{\"text\":\"\\n\",\"color\":\"reset\"},{\"text\":\"Daylight Cycle:\\n\",\"color\":\"dark_blue\"},{\"text\":\"on\",\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/gamerule dodaylightcycle true\"}},{\"text\":\" \",\"color\":\"dark_blue\"},{\"text\":\"off\",\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/gamerule dodaylightcycle false\"}},{\"text\":\"\\n\\nWeather Cycle:\\n\",\"color\":\"dark_blue\"},{\"text\":\"on\",\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/gamerule doweathercycle true\"}},{\"text\":\" \",\"color\":\"dark_blue\"},{\"text\":\"off\",\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/gamerule doweathercycle true\"}},{\"text\":\"\\n \",\"color\":\"reset\"}]","[\"\",{\"text\":\"Credits\",\"bold\":true,\"color\":\"dark_blue\"},{\"text\":\"\\n\\n\",\"color\":\"dark_blue\"},{\"text\":\"Original Map Creator\",\"color\":\"dark_blue\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Mr. Kaspersson\"}},{\"text\":\"\\n\",\"color\":\"dark_blue\"},{\"text\":\"Contributor\",\"color\":\"dark_blue\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"DieselDorky16\"}},{\"text\":\"\\n\\n\",\"color\":\"dark_blue\"},{\"text\":\"Malfoy Manor/\\nGrimmauld Place\",\"color\":\"dark_blue\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"The Floo Network\"}},{\"text\":\"\\n\\n\",\"color\":\"dark_blue\"},{\"text\":\"Shrieking Shack/\\nWhomping Willow\",\"color\":\"dark_blue\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"MonoFlax\"}},{\"text\":\"\\n\\n\",\"color\":\"dark_blue\"},{\"text\":\"Room of Req./Trophy Room\",\"color\":\"dark_blue\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"PoeticWhisper\"}},{\"text\":\"\\n\\n \",\"color\":\"reset\"}]","[\"\",{\"text\":\"Credits (cont'd)\",\"bold\":true,\"color\":\"dark_blue\"},{\"text\":\"\\n\\n\",\"color\":\"dark_blue\"},{\"text\":\"Grand Staircase\",\"color\":\"dark_blue\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Poetic Whisper, Mr. Kaspersson\"}},{\"text\":\"\\n\",\"color\":\"dark_blue\"},{\"text\":\"Gryffindor Dormitories\",\"color\":\"dark_blue\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"MaxAtlantis4867\"}},{\"text\":\"\\n\",\"color\":\"dark_blue\"},{\"text\":\"Trapdoor Room\",\"color\":\"dark_blue\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"MaxAtlantis4867\"}},{\"text\":\"\\n\\n\\n\",\"color\":\"reset\"},{\"text\":\"Copyright 2012-2019 Mr. Kaspersson and PlanetMinecraft, \",\"italic\":true,\"color\":\"gray\"},{\"text\":\"not protected\",\"bold\":true,\"italic\":true,\"underlined\":true,\"color\":\"gray\"},{\"text\":\" by copyright.\",\"color\":\"gray\",\"italic\":true}]"],title:"Navigation Booklet",author:DieselDorky16}
Category:Massive Project
Category:Source Code
Category:Hogwarts
Category:Minecraft
Category:Commands
Category:§ Subpages