How to get to the Nether in Minecraft? Recently, many friends have asked the editor about portals, such as how to play the Nether Portal. What is the function of the Nether Portal? If you have any questions, let’s take a look at the functional analysis of Minecraft Portal.
Nether portal function
Portals with corners and without corners, because they are so close, will all lead to the same portal in the Nether.
When the player stands in the portal block for 4 seconds, the player will be teleported to the Nether. The player can cancel the teleport by leaving the portal before teleporting. When you enter the Nether, a new portal will automatically be created. Portals constructed very close together in the Overworld will teleport to the same portal in the Nether, and vice versa.
Purple portal blocks always appear in an obsidian frame of 45 (6 portal blocks are 23 in size). A portal block obtained with modifiers or mods placed on the ground can also lead you to the Nether.
When you approach or enter a nether portal, the portal will emit some spooky sounds and other uncomfortable sound effects, and will emit purple snowflake-like particles (the same as those emitted by the Endermen).
The connection between the overworld and the lower world
When no portal is within range, a new portal will spawn in the clearing closest to the player.
In terms of horizontal length, the main world: the lower world = 8:1 (3:1 in the Xbox 360 version), that is to say, in the horizontal distance, the player moving 1 meter in the lower world is equivalent to moving 8 meters in the main world.
This is not the case on the Y-axis: the vertical length ratio is 1:1, even though the height of the lower bound is only 128. There is no definite mutual correspondence between the portals. When the player enters the portal, the transmission process follows the following rules:
Use your current coordinates to calculate the coordinates of your destination (round down) (Java rounding function floor()), and then calculate X according to your direction (lower bound-->main world/main world-->lower bound) , the Z coordinate is divided/multiplied by 8 (lower bound-->main world: multiplied by 8, otherwise divided by 8). The Y-axis coordinate does not need to change. This transformation can be calculated by the following formula:
(X , Y , Z) (floor(X) /8, Y , floor(Z) / 8)
Note that in the XBox 360 version, due to world size limitations, this ratio is 3:1.
When you reach your destination, the game will automatically search for all activated portals within a radius of 128 blocks from you (looking for an area of 257 257 128 centered on the projection of the target point on the x0z plane). An activated portal is defined as a portal block that has no other portal blocks below it, so only the bottom two portal blocks of an activated portal are eligible. If there is such a qualified portal, the player will be teleported to the one closest to him (taking into account the Y axis, so that the area that actually enters the consideration range increases).
The game will only search at a height of Y=0 - Y=127, even though the height limit of the overworld has exceeded 127 after 1.2, so portals in the Nether higher than Y=128 will not be considered.
If there is no such a portal, the game will look for an area with enough space and falling on the ground to generate a new portal (looking for an area 33 33 128 centered on the projection of the target point on the x0z plane) . Normally, the game will first select the space closest to the target point to generate the portal, and secondly give priority to the orientation of the portal being the same as the direction in which the player enters. Of course, the other three directions will also be considered.
If none of the above processes find any suitable place, the game will eventually generate a new portal directly at the target point (limiting the Y-axis coordinate to 70-118), converting all nearby blocks (including air) into portals. Such a portal will have 2 extra obsidian blocks on both sides of the bottom to prevent players from falling.