Nether portals work by applying to the x and z coordinates the function f(x)= 8x and the inverse function f -1(x)= x/8 when generating the portal from the overworld or nether dimensions respectively.
My request is for a mod that would allow the user (via config file) to alter the generation location of modded and vanilla dimension portals. For instance, you could set portals from the overworld to generate a portal in the nether with coordinates 9 times the coordinates in the overworld. Also, you could allow support for users to config portal coordinate generation rules for portals coming from any dimension (assuming the dimensions could be linked via a portal) and have asymmetrical portal generation functions. Below I added an example of how the config file could be interacted with.
The way I envisioned it, the user interface of the config file would involve mathematical operations.
Ex:
#Variable key:
#ax = initial dimension x coordinate
#ay = initial dimension y coordinate
#az = initial dimension z coordinate
#bx = generation dimension x coordinate
#by = generation dimension y coordinate
#bz = generation dimension z coordinate
#dim_a and dim_b would be replaced by the dimension ID
dim_a > dim_b {
bx = 2ax
by = ay
bz = ay(az^2)
}
dim_b > dim_a {
bx = ax/2
by = az
bz = az - 8^ay
}
In this circumstance, the generation of the portals would be asymmetrical. However, the user could define the dimensions to be inverses of each other.
This was just for demonstrative purposes.
Thank you for reading through my mod request. Please let me know if this idea is interesting-- or even better-- if you decide to take up the project.
Nether portals work by applying to the x and z coordinates the function f(x)= 8x and the inverse function f -1(x)= x/8 when generating the portal from the overworld or nether dimensions respectively.
My request is for a mod that would allow the user (via config file) to alter the generation location of modded and vanilla dimension portals. For instance, you could set portals from the overworld to generate a portal in the nether with coordinates 9 times the coordinates in the overworld. Also, you could allow support for users to config portal coordinate generation rules for portals coming from any dimension (assuming the dimensions could be linked via a portal) and have asymmetrical portal generation functions. Below I added an example of how the config file could be interacted with.
The way I envisioned it, the user interface of the config file would involve mathematical operations.
Ex:
#Variable key:
#ax = initial dimension x coordinate
#ay = initial dimension y coordinate
#az = initial dimension z coordinate
#bx = generation dimension x coordinate
#by = generation dimension y coordinate
#bz = generation dimension z coordinate
#dim_a and dim_b would be replaced by the dimension ID
dim_a > dim_b {
bx = 2ax
by = ay
bz = ay(az^2)
}
dim_b > dim_a {
bx = ax/2
by = az
bz = az - 8^ay
}
In this circumstance, the generation of the portals would be asymmetrical. However, the user could define the dimensions to be inverses of each other.
This was just for demonstrative purposes.
Thank you for reading through my mod request. Please let me know if this idea is interesting-- or even better-- if you decide to take up the project.