Download LCon - Local Console Access — Minecraft Mods — MetaMods

LCon - Local Console Access

Active

Downloads

0

Last update

1 year ago

Versions

1.19.2 — 1.20.1
Client
Forge
Game mechanics
Control
Utils

LCon - Local Console Access

A useful client-side mod that adds a WebSocket server to Minecraft, providing command exchange and response retrieval similar to the RCon principle.

How to use:

After installation, the mod automatically creates a configuration file with the following parameters:

  • enable_mod = true
  • port = 8115

The WebSocket server starts listening on port 8115. To interact, simply connect to this server using any convenient WebSocket client.

Upon successful connection, the server sends a welcome message with information:

200:Welcome to LCon! Good luck! Don't forget to use prefixes for every message you send.
200:Valid prefixes:
200:[chat] - send a message to the Minecraft game chat.
200:[message] - show a message only for the player.
200:[system] - display a system message in chat (player only).
200:[client] - execute a client-side command.
200:[server] - execute a server-side command.
201:ready.

Each message from the server is accompanied by a status code similar to HTTP status codes:

  • 200 - normal message
  • 201 - status message (success)
  • 400 - error

The ability to send various data to the server opens up many actions to perform, as well as receiving response messages. All messages displayed in the Minecraft game chat are duplicated to connected WebSocket clients, which can either analyze or ignore this data.

Each message sent to the server must begin with one of the above prefixes. Messages without a valid prefix will result in an error being sent with the corresponding status code.

Project members
ZigTheHedge

ZigTheHedge

Developer

CweLTH

CweLTH

Created: 28 May 2024

ID: 24212