scoreboard players add game tutorial 1
tellraw @a {"text":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n "}
execute if score game tutorial matches 1 run tellraw @a ["",{"text":"Welcome to "},{"text":"The Hypercube","bold":true,"color":"gold"},{"text":"! The Hypercube is a puzzle map in which there are 4 spatial dimensions, one more than the 3 our universe has."}]
execute if score game tutorial matches 1 run fill -80 18 -40 -73 23 -33 air
execute if score game tutorial matches 1 run kill @e[name=player]
execute if score game tutorial matches 1 run kill @e[name=player]
execute if score game tutorial matches 2 run tellraw @a {"text":"What will be visible in the game at one time will be 3-dimensional. A fourth dimension is impossible to visualize and display in our world. Because of this, we need to show 3-dimensional \"slices\" of the 4D world."}
execute if score game tutorial matches 3 run tellraw @a {"text":"A good way to understand what this means is to look at an example in one less dimension."}
execute if score game tutorial matches 4 run tellraw @a {"text":"Take this 3D world and this player. The player's goal is to reach the gold block."}
execute if score game tutorial matches 4 run clone 7 4 14 14 9 7 -80 18 -40
execute if score game tutorial matches 4 run summon armor_stand -79 21 -34 {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,NoBasePlate:1b,PersistenceRequired:1b,DisabledSlots:4144959,Rotation:[-90F,0F],ArmorItems:[{},{},{},{id:"minecraft:lime_stained_glass",Count:1b}],CustomName:"{\"text\":\"player\"}"}
execute if score game tutorial matches 5 run tellraw @a {"text":"The problem is, the player is a 2 dimensional character, that lives in a 2 dimensional plane. Because of this, he cannot see the whole world at once, he can only see a slice of it."}
execute if score game tutorial matches 6 run tellraw @a {"text":"This is the slice that the player sees."}
execute if score game tutorial matches 6 run fill -73 18 -40 -78 30 -33 air
execute if score game tutorial matches 6 run fill -80 18 -40 -80 30 -33 air
execute if score game tutorial matches 7 run tellraw @a {"text":"To him, there is no way that he can get past that wall."}
execute if score game tutorial matches 8 run tellraw @a {"text":"However, he does have a special power. He can rotate his plane of existence."}
execute if score game tutorial matches 8 run clone 7 4 14 14 9 7 -80 18 -40
execute if score game tutorial matches 9 run replaceitem entity @e[name=player,limit=1] armor.head minecraft:brown_stained_glass
execute if score game tutorial matches 9 run tellraw @a {"text":"Now he can move across another dimension. Using this, he can move around the wall and get to the gold block."}
execute if score game tutorial matches 10 run fill -80 18 -40 -73 30 -33 air
execute if score game tutorial matches 10 run clone 7 4 13 14 6 13 -80 18 -34
execute if score game tutorial matches 11 run tp @e[name=player] -75 21 -34
execute if score game tutorial matches 12 run replaceitem entity @e[name=player,limit=1] armor.head minecraft:lime_stained_glass
execute if score game tutorial matches 12 run tellraw @a {"text":"After rotating again, he is now facing the same direction as before. However, he is now on a different position on the 3rd dimension."}
execute if score game tutorial matches 12 run fill -80 18 -40 -73 30 -33 air
execute if score game tutorial matches 12 run clone 12 4 7 12 6 14 -75 18 -40
execute if score game tutorial matches 13 run tp @e[name=player] -75 21 -39
execute if score game tutorial matches 14 run replaceitem entity @e[name=player,limit=1] armor.head minecraft:brown_stained_glass
execute if score game tutorial matches 14 run fill -80 18 -40 -73 30 -33 air
execute if score game tutorial matches 14 run clone 7 4 8 14 6 8 -80 18 -39
execute if score game tutorial matches 15 run tp @e[name=player] -79 21 -39
execute if score game tutorial matches 16 run tellraw @a {"text":"To us, it makes sense how this movement works, because we can see the whole 3D world at once. However, as you saw in the demonstration, the player can only see slices of the 3D world."}
execute if score game tutorial matches 16 run clone 7 4 14 14 9 7 -80 18 -40
execute if score game tutorial matches 16 run replaceitem entity @e[name=player,limit=1] armor.head minecraft:lime_stained_glass
execute if score game tutorial matches 17 run tellraw @a {"text":"For him, it appears as if the world is somehow transforming and morphing around him when he rotates, however all that is happening is that his plane of view is being rotated."}
execute if score game tutorial matches 18 run tellraw @a {"text":"When you enter the world of The Hypercube, the world will be 4D, however you will only be able to see 3D slices. When you rotate your plane of view, your X axis will be switched with the W axis."}
execute if score game tutorial matches 19 run tellraw @a {"text":"There are 7 levels. Good luck. Check this tutorial again whenever you like."}
execute if score game tutorial matches 20 run clear @p
execute if score game tutorial matches 20 run tp @p -1003 40 -16
execute if score game tutorial matches 20 run scoreboard players set game tutorial 0



execute if score game tutorial matches 1 run give @p minecraft:carrot_on_a_stick{display:{Name:"{\"text\":\"Continue tutorial\",\"color\":\"green\",\"bold\":\"true\",\"italic\":\"false\"}"},CustomModelData:3} 1






