A console chat client for most Minecraft server versions
Project description
MChat
A console chat client for most Minecraft server versions. This project is a combination of @ammaraskar's PyCraft client library, and @willmcgugan's rich text library for Python.
Installation
From PIP
# Install PyCraft
python3 -m pip install https://github.com/ammaraskar/pyCraft.git
# Install MChat
python3 -m pip install mchat
From Source
To install from source using the Poetry build tool and pyenv, clone this repository, then run:
pyenv install 3.9.0
pyenv local 3.9.0
poetry install
Usage
MChat can be run as mchat
if installed from PIP or as poetry run python3 -m mchat
if running from the GIT repo.
Usage is as follows:
usage: mchat [-h] [-p PORT] [-u USERNAME] [-v VERSION] server_address
A console chat client for most Minecraft server versions
positional arguments:
server_address IP address of a Minecraft server
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Minecraft server port (default: 25565)
-u USERNAME, --username USERNAME
Minecraft username or email
-v VERSION, --version VERSION
Client -> Server protocol version to use (default: 1.16.4)
You will be prompted for a username (if not passed as an argument), and password when running the program.
FAQ
Are colors configurable?
No. Terminal colors are not directly configurable from this program, as server-sent formatting data is fed directly into the rich text formatter. Your terminal emulator may allow you to customize your pallette though.
What Minecraft versions are supported?
Anything supported by PyCraft. Entering an invalid version when running mchat
will tell you what is supported by the version of PyCraft you have installed. For example, this is the result at the time of writing:
$ mchat -v 0.0.0 example.com
0.0.0 is not a valid Minecraft version. Versions from 1.7.2 to 20w48a are allowed.
You can update PyCraft from PIP to pull in new version support as needed.
Screenshots
Demo on mcctf.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mchat-0.1.0.tar.gz
.
File metadata
- Download URL: mchat-0.1.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.0 Linux/5.3.0-050300-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c905a7454a12fba533b90ebbd7870f7eadab6c1a3622f81bf0273d889d431a11 |
|
MD5 | 33a731ed75707c534efaff708951d0be |
|
BLAKE2b-256 | f621ce2cd963c8d4e73759165aec13440ad437fc476fc1bd64177bdea0219122 |
File details
Details for the file mchat-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mchat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.0 Linux/5.3.0-050300-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58eb06c5dc17c7bcfbedcf035476230b9dd4f4a371b942193525617c9b041da |
|
MD5 | 386c4cc431f4f8a659c929c9c75ac173 |
|
BLAKE2b-256 | fa9aa4f2624c67e88ce1b2c68f52adedd3133dcaa71fccb26442748b95ab269c |