vaitosoi/minejs ? reverse-engineered prompt
Reverse engineered prompt
Build me a Minecraft client package in TypeScript that can connect to a Java Edition server from Node, using raw socket communication. I want it to work as a bot client, with a simple API where I can set the player name, host, port, protocol version, offline mode, and then call connect.
It should handle common client events like disconnects, chat messages, system messages, action bar messages, player position updates, and basic entity and chunk events if possible. I also want movement controls like holding and releasing directions, stopping movement, and a way to check the player state at a specific x y z position.
Please make it easy to use from a small script, and include a clean README example showing how to connect to a local server and listen for messages. If you need to, look up current Minecraft protocol docs online so the packet handling is accurate for the latest supported version.
Are you gonna build this?
make sure you review the code using coderabbit