The Eaglercraft browser client is configured via theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/lDEVinux/eaglercraft/llms.txt
Use this file to discover all available pages before exploring further.
window.eaglercraftOpts object in index.html. Set it before calling main() to customize the server list, relay list, asset overrides, and more.
index.html
Top-Level Fields
The
id of the DOM element that the game canvas will be rendered into. In the reference index.html, the <body> tag itself carries id="game_frame" so the game fills the entire viewport.URL (relative or absolute) to the
assets.epk file. This EPK archive contains all game textures, sounds, and other resources loaded at startup.URL to
worker_bootstrap.js, the Web Worker script used to run the integrated singleplayer server in a background thread. Must be present even if you only intend to run multiplayer.The localStorage key prefix used to store singleplayer world data in the browser. Change this value if you want worlds saved under this client to be isolated from worlds saved under another client on the same domain. The reference
stable-download client uses "MAIN"; the development client uses "TEST".When set, the client automatically connects to this server address as soon as the player finishes choosing a username and skin, skipping the main menu. Accepts a
host:port string. This field is also set automatically when the ?server= URL query parameter is present — see Auto-Join URL Parameter below.servers Array
Pre-populate the in-game Multiplayer server list by providing one or more server entry objects:relays Array
Relays are WebSocket servers used to broker LAN world connections between players. Provide one or more relay objects:Only one relay should have
primary: true. In the reference implementation, a random relay is selected as primary to distribute load across the available relay pool:assetOverrides
Override individual files within the EPK archive at runtime without recompiling. Keys are the paths of files inside the EPK archive; values are replacement URLs (relative or absolute, including live audio streams):"" suppresses that asset entirely (e.g., to disable the panorama blur on the title screen with "title/no-pano-blur.flag": "").
For a deeper dive, see Asset Overrides (No EPK Recompile).
mainMenu
Controls cosmetic elements of the title screen:| Field | Type | Description |
|---|---|---|
splashes | string[] | Array of splash text strings displayed randomly on the title screen (the yellow rotating text). |
eaglerLogo | boolean | When true, shows the Eagler logo on the title screen. Set to false in the reference client. |
Auto-Join URL Parameter
The?server= query string sets joinServer automatically, letting you create direct-connect links to your server. For example:
index.html immediately after the eaglercraftOpts object is defined:
index.html