Portal Finder⛏
[UI version]
This is a hobby project that allows you to find an End portal using a minimal amount of Eyes of Ender
- Throw an Eye of Ender from any location
- Align the cursor directly with the stopped Eye of Ender
- Record the results in the program
- Repeat the steps from a different location, moving away from the previous location by a significant distance (the further the more accurate, 500+ blocks in any axis)
The program creates two linear equations from the entered data. The point of intersection of these functions represents the coordinates of the portal. The point of intersection is determined by solving the system of equations using the Cramer's rule with matrices.
By examining the code, you may notice that the slope (k) in the equation y = kx + b is calculated as the tangent of the angle (a) plus 90 degrees. Why? The X-axis in Minecraft is unique. It belongs to (♾, -♾) instead of the other way around. Hence, some tricks have to be performed.
Size: 239 KBgit clone https://github.com/muminovbob/portal_finder.git
cd portal_finder/rust
cargo run --release
There is a third-party library called cfonts used for console styling. So, if you use pyinstaller, make sure to include the venv/lib/cfonts directory.
git clone https://github.com/muminovbob/portal_finder.git
cd portal_finder/python
Create/enter into a venv
pip install -r requirements.txt
python main.py
🌟It was exciting to develop this project! Feel free to contribute here