promotional bannermobile promotional banner

Eye Cross

Throw two Eyes of Ender, and where the two fitted lines intersect, you get the Stronghold coordinates directly.

Eye Cross

Minecraft 26.1.2 Fabric Loader 0.19.3+ MIT


Eye Cross is a pure-client Fabric mod: it automatically records the flight trajectories of Eyes of Ender, fits each trajectory to a straight line, and computes the least-squares intersection of two or more lines. Throw two eyes and you get the Stronghold coordinates. Throwing just one eye is also useful: the mod uses the Java Edition Stronghold ring distribution (128 Strongholds, 8 rings centered on the origin 0,0) combined with the throw direction to immediately give a rough coordinate and error band. After entering a Stronghold, the mod also scans for and locates the End Portal.

Quick Start

Required mods:

Integration mods:

  • Mod Menu (≥18.0.0, open the Eye Cross config screen from the mod menu)
  • Xaero's Minimap (≥26.2.0, waypoint integration)

How to use:

  1. Install the mod and enter the Overworld.
  2. Throw an Eye of Ender — when it breaks or drops, the mod automatically records its flight trajectory and gives an estimate based on the Stronghold rings: “which ring + rough coordinates + error band”.
  3. Move some distance away so the second throw heads in a different direction, then throw another eye to get a precise intersection.
  4. The chat displays the Stronghold coordinates and error. Click “[Click to teleport]” to run /tp @s X ~ Z in one click.
  5. After entering the Stronghold, the mod also automatically scans for the End Portal and marks it with colored translucent boxes (yellow = no Eye of Ender placed, green = Eye placed, purple = portal blocks).

The more throws, the better the accuracy (up to the latest 12 trajectories are kept). After a precise intersection, a beacon-like beam appears at the estimated location in the world; when only one eye has been thrown and an estimate is available, a horizontal ring marks the approximate area. If the target is beyond render distance, an arrow pointing to the Stronghold appears in front of you.

Xaero integration: If Xaero's Minimap (≥26.2.0) is installed, after each precise solution the mod automatically adds the Stronghold coordinates as a waypoint to the minimap/world map/waypoint menu (fixed name Stronghold(EC), green “S” marker, repeatedly overwritten and updated with the same ID). After finding the portal, you can also set the waypoint to the portal center in one click (via the /eyecross portal command or by clicking the button in chat). If it is not installed or the version is too old, this is skipped automatically and never affects core features such as estimation.

How It Works

Sampling: every client tick records the (x, z) position of the flying Eye entity.

Single-throw estimation: each world has exactly 128 Strongholds, distributed across 8 rings centered on the origin (0,0) (ring 1 has 3, radius 1239–2857 blocks … ring 8 has 9, radius 22742–24362 blocks). The Eye of Ender flies toward the nearest Stronghold, so the throw ray is intersected with the 8 rings, and the first ring crossed is taken — the midpoint of the interval is the estimated point, and the interval half-width plus throw-angle noise form the error band.

Fitting: total least squares (PCA) is applied to the entire trajectory to obtain a straight line.

Intersection: for all lines, minimise the sum of squared point-to-line distances and solve a 2×2 normal equation. If the angle between two lines is less than 2°, they are considered nearly parallel, and you are prompted to move and retry.

Configuration

The config file is config/eye-cross.json5 (generated automatically on first launch). You can modify it in the following ways:

  1. Edit the file directly, then run /eyecross config reload to hot-reload it (use /eyecross config path to view the config file location).
  2. With Cloth Config + Mod Menu installed, click the “Config” button for Eye Cross in the mod menu; changes take effect after saving.
Config option Default Description
portalEnabled true Master switch for End Portal features (scanning, boxes, beam, chat notifications)
estimateRing true Draw the estimated range ring after a single throw
directionArrow true Draw a direction arrow when the Stronghold is off-screen
hudEnabled true Default persistent HUD switch (can still be toggled with /eyecross hud)
xaeroWaypoints true Whether to push/update Xaero waypoints
beamMinY / beamMaxY -64 / 320 Vertical truncation bounds for the beam (world build height)
beamHalfWidth 0.35 Beam half-width (blocks); shared by the Stronghold beam and portal beam
scanInterval 10 End Portal scan interval (ticks)
solutionBeamColor FFFFAA00 Stronghold solution beam color (AARRGGBB)
portalBeamColor FFAA00FF Portal center beam color (AARRGGBB)
portalFrameNoEyeColor FFFFFF00 Portal frame block color when no Eye is placed (AARRGGBB)
portalFrameHasEyeColor FF00FF00 Portal frame block color when an Eye is placed (AARRGGBB)
portalBlockColor FFAA00FF End Portal block color (AARRGGBB)

Commands

Command Description
/eyecross help Command usage instructions (all /eyecross subcommands)
/eyecross status Details of each trajectory and the current solution/estimate (coordinates are clickable to teleport)
/eyecross rings List the Stronghold ring distribution table (count and radius range for each ring)
/eyecross reset Clear all trajectories and restart recording
/eyecross hud Show / hide the HUD
/eyecross hudpos topleft|topright|bottomleft|bottomright Move the HUD to the top-left / top-right / bottom-left / bottom-right of the screen
/eyecross portal Move the Xaero waypoint to the detected portal center
/eyecross config reload Reload the config file
/eyecross config path Show the config file path

License

MIT © RSPqfgn

Eye Cross Team

profile avatar
Owner
  • 2
    Projects
  • 151
    Downloads

More from RSPqfgn