Skip to content

mmnvb/portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

🎮How to Use?

  1. Throw an Eye of Ender from any location


  2. Align the cursor directly with the stopped Eye of Ender


  3. Record the results in the program


  4. 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)


👨‍🔬How does it work?

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.

💾Executable

🦀Rust (CLI)

Size: 239 KB
  • git clone https://github.com/muminovbob/portal_finder.git
  • cd portal_finder/rust
  • cargo run --release
Note that UI version is also available


🟦Python

Size: 5.73 MB
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