Reticle pages

Menu editor

The editor is a web page that your server hands out itself. It shows your menus as they look in game, drawn with Minecraft's font and item pictures, and saves them straight into plugins/Reticle/menus/.

Opening it

Type /reticle editor in game; it needs reticle.command.editor. Reticle answers with "Open the menu editor" in chat. Click it, and the editor opens in your browser.

  • The link works once and signs you in for that browser tab.
  • The editor signs you out after Editor.Session_Minutes minutes without use, 30 unless you change it. While you work in the page it keeps the session open. A link nobody opens runs out after the same time.
  • A new /reticle editor ends the session of your previous link.
  • In the console, reticle editor prints the link as text. This needs Web.Host set to your server's address, and the editor then has no Show in game, because there is no player to show the menu to.

The link uses the same address and port as the resource pack, so the web settings apply to both. Behind BungeeCord or Velocity the link opens only after you set Web.Port and Web.Host, see Behind BungeeCord or Velocity.

What you can do

  • Make a menu with New, starting from Blank or from one of the templates. Duplicate a menu, which copies everything but its Command, or delete it; Undo brings a deleted menu back.
  • Make a HUD with New beside HUDs, from Blank or one of the HUD templates. The preview shows it on a screen of 320 by 240 HUD pixels at its Anchor and Offset, with guides where Minecraft draws the hotbar, health and food, the action bar, boss bars and the player's hand. Its bar at the top offers only panels, texts, items and maps.
  • Add a panel, text, button, item, input or map from the bar at the top. Drag an element to move it and drag its handles to resize it. Guides snap to the edges and centers of the menu and of the other elements.
  • A map in the preview shows the land around the player who asked for the link, or around the world spawn for a link from the console, with his waypoints, the server's pins and the other players; mobs show only in the game. Its size moves in steps of 16 pixels, and Shape, Pixels per block, Markers, Unexplored, Frame and Compass redraw it at once. The preview keeps north up for a map that turns, and shows the live land in a world with a baked picture. The land comes from the server, so a new zoom or size takes a moment to fill in.
  • Set every key of the menu or of the selected element in the panel on the right. Colors take any usual hex form, icons come from a list you can search, and each action shows an example of its value.
  • Undo and redo up to 200 steps, and zoom the preview from 2 to 12 times.
  • In a narrow window the lists of menus, HUDs and elements fold behind the Menus and HUDs button at the top left. The editor follows the text size you set in your browser, and a high contrast theme keeps every button and selection visible.
  • Show in game opens the menu in front of you, or shows you the HUD.
KeysWhat they do
Ctrl+SSave
Ctrl+ZUndo
Ctrl+Shift+Z or Ctrl+YRedo
Arrow keysMove the selected element by 1 pixel, with Shift by 8; in the bar at the top, move between the tools
Delete or BackspaceDelete the selected element
Ctrl+DDuplicate the selected element
+ and -Zoom in and out
EscapeClose the icon list, or select nothing

On a Mac, Cmd works in place of Ctrl.

Saving

Save writes the file at once. The menu works without /reticle reload, its commands change with it, and players who have it in front of them see the new version straight away. Every save goes through the same checks as a file at startup. When one fails, the editor shows the reason, and when the reason names an element, a button that selects it.

The editor writes the whole file in its own order and keeps no comments. Copy a file you commented by hand before you save it in the editor.

Changes you have not saved stay in your browser when your session ends or you close the tab, and come back with your next link in the same browser.

Files changed by hand

When you open a menu whose file was edited by hand, the editor shows the file as it is on disk, even before /reticle reload. If that file holds a mistake, the editor says so and asks you to fix the file first.

When the file changes while you have it open, Save stops with "This menu changed on the server since you opened it. Open it again to see the changes." Click Reload to load the version on the server; Undo then brings your own back.

When the file of a loaded menu is deleted by hand, the editor shows that menu as unsaved, and Save writes the file again.

Menus that other plugins build in code are not in the list and cannot be changed here.

Show in game

Show in game saves the menu if it has changes, then opens it for the player who asked for the link and says "Opened shop for Steve." When he cannot open a menu at that moment, for example while he is falling, the editor shows the same message the game would give, and when another plugin stops the menu from opening, it says so.

The helper

The helper changes the open menu or HUD from a sentence you type, such as "Add a button that opens the shop". It is optional, and Reticle and the editor work fully without it.

  1. Click Sign in with BuiltByBit at the bottom of the preview. A window opens on mineacademy.org, names the address of your editor and sends you on to BuiltByBit, where you sign in with the account that bought Reticle. If your browser blocks the window, the editor shows the sign in page as a link instead.
  2. Type what you want in the field beside it and click Ask. An answer takes up to two minutes.

Before the editor shows an answer, your server checks it the way Save checks a file. When the server refuses it, or a text runs past its element, the editor sends the reason back and the helper tries again, at most twice. Then the editor applies the answer as one step, says what changed, and one Undo takes all of it back. Nothing reaches your server's files until you click Save.

Each console, command or server action the helper adds or changes appears in a list above the field, and Save stays off until you tick every one of them. Read them first: a command can do anything on your server.

What goes where

  • When you click Ask, your browser sends your words, the open menu or HUD, your Reticle and Minecraft versions, and the rules and icon names of your server to mineacademy.org, which has Anthropic's Claude write the answer. None of this goes there before you click Ask, and your Minecraft server never contacts mineacademy.org.
  • mineacademy.org counts your prompts for a monthly allowance. The line under the field shows how many are left and the day they renew.
  • Your browser keeps the sign in for 30 days under the name reticle-ai, and Sign out under the field ends it sooner. The sign in never goes to your Minecraft server, and your editor link never goes to mineacademy.org.
  • When the helper cannot answer, for example because your prompts for the month are used up, the editor shows the reason mineacademy.org gives.

Who may use it

Warning

Whoever holds reticle.command.editor can change every menu, and menus can run console commands. Give it only to staff you would trust with the console.

When a player loses reticle.command.editor, or is banned, his next request, even one that only reads a menu, signs him out with "You may no longer edit menus on this server." While he is not on the server, the editor still shows the menus but changes nothing, because Reticle cannot check his permission then.

The page and everything it sends travel over plain HTTP, without encryption.

Settings

KeyDefaultWhat it does for the editor
Editor.EnabledtrueWith false, /reticle editor answers "The editor is off. Set Editor.Enabled to true in settings.yml."
Editor.Session_Minutes30Minutes without use before the editor signs you out, 1 to 1440
Web.HostautoThe address in the link
Web.PortgameThe port in the link
Web.Bind0.0.0.0The network interface when Web.Port is a number