Reticle pages

Resource pack

Reticle's pack lets clients 1.21.11 and newer show menus in shader mode: flat on a still screen, with a pointer that the player's own game draws and the world darkened behind the menu. It holds text shaders for 1.21.11 and newer, a small font, and a shader that draws the pointer and hides the crosshair while a menu is open. It also mutes Minecraft's underwater ambience, because holding the view still makes the game believe the player is under water. While no menu is open, the pack draws nothing and changes nothing else.

Players do not have to take it. Without it, every menu still works in world mode.

How players get it

When Reticle starts, it builds the pack from files inside its jar. The same jar always gives the same zip, named after its SHA-1 hash. Five ticks after a player joins, Reticle sends him the pack as an extra pack under its own id, next to any pack your server or other plugins send. Minecraft then asks him whether he wants it, with the line "Menus on this server look and feel best with this small pack."

A player who declines stays on the server and gets world mode. To take the pack later, he edits your server in his server list, sets Server Resource Packs to Enabled and joins again.

Pack.Enabled: false in settings.yml stops Reticle from sending the pack.

Where the pack comes from

With Web.Port: game, the default, the pack comes over your Minecraft port. Reticle answers only requests for its own paths there and hands everything else on to Minecraft, so the port needs no change. ItemsAdder 5, which serves its own packs on the game port, keeps working beside it.

With a port number in Web.Port, Reticle runs a small web server of its own on that port. Open the port in your firewall.

The link Reticle sends looks like http://play.example.com:25565/<hash>.zip. With Web.Host: auto, the address is the one the player typed to connect. For a domain, Reticle first looks up its _minecraft._tcp SRV record, as Minecraft does, and uses the host the record names, with Web.Port: game its port too; it remembers the answer for 10 minutes. An IP address goes in as typed. Set Web.Host yourself when players connect through something that changes the address, such as a proxy.

Behind BungeeCord or Velocity

Players behind a proxy connect to the proxy, which cannot hand out the pack, so Web.Port: game does not work there. Reticle notices a proxy from settings.bungeecord in spigot.yml or proxies.velocity.enabled in config/paper-global.yml and warns at startup:

Players join this server through a proxy, so they cannot reach its game port for the menu pack and the editor. Set Web.Port in settings.yml to a port players can reach and Web.Host to this server's public address. Until then menus stand in front of players without the pack.

On each backend server:

  1. Set Web.Port to a free port, a different one for each server on the same machine.
  2. Set Web.Host to the address where players can reach that machine.
  3. Open the port in the firewall and run /reticle reload.
Web:
  Host: play.example.com
  Port: 8164
  Bind: 0.0.0.0

When players cannot reach any port of a backend, its menus keep working in world mode, and the editor link does not open.

Beside other packs

Reticle never replaces a shader that another pack from your server brings. Its own pack replaces a few of Minecraft's shader files: the text shaders and the shader that draws the crosshair and the underwater overlay. Reticle downloads every pack your server or another plugin sends a player, once, looks inside for any of those files and remembers the answer by the pack's hash. While such a check runs, Reticle holds its own pack back. A player who receives a pack with one of those files gets world mode, and when that pack came first, Reticle does not send him its own at all. The console names the pack once:

The resource pack <address> that another plugin sends replaces a Minecraft shader that Reticle's pack replaces too, so players who get it see Reticle menus standing in front of them instead of flat on the screen.

A pack that Reticle cannot download or read counts the same, with this line:

Reticle could not read the resource pack <address> that another plugin sends (<reason>), so players who get it see menus standing in front of them instead of flat on the screen.

The pack of ItemsAdder 5.0.0-beta-8, which we tested, brings such a shader, so players who get it see world mode. A pack that leaves those files alone loads beside Reticle's, and menus keep shader mode, even when it changes other shader files.

When a plugin later replaces all of a player's packs at once, as Paper's setResourcePack does, Reticle's pack goes with them. Reticle sees that and sends its pack again once the new packs pass the same check.

Shader packs

A shader pack for Iris replaces Minecraft's own shaders while it is on, and with them the shaders in Reticle's pack. Reticle cannot see whether a player uses one, so it still picks shader mode for him. His menu then stands a quarter of a block before his eyes, the world still holds still, and an arrow that your server moves follows his mouse a moment late, once his look reaches the server. Since your server cannot tell who runs a shader pack, it moves that arrow for every player with the flat menu, at most one small packet a tick while his mouse moves, and his pack hides it from everyone without a shader pack. Highlights and clicks work as usual. HUDs stay hidden while his shader pack is on. We tested Iris 1.11.7 with Complementary Reimagined, BSL and Sildur's Vibrant; OptiFine is not tested.