Parse and serialize minecraft packets, plus authentication and encryption.
Find a file
2013-01-01 14:54:25 -05:00
lib fix slot parsing 2013-01-01 14:54:25 -05:00
.gitignore getting encryption request 2012-12-31 20:33:35 -05:00
package.json getting encryption request 2012-12-31 20:33:35 -05:00
packets.json fix slot parsing 2013-01-01 14:54:25 -05:00
README.md successfully log in to minecraft server 2013-01-01 04:14:38 -05:00
test.js successfully log in to minecraft server 2013-01-01 04:14:38 -05:00

minecraft protocol

This project simply provides protocol support. You'll want to use a higher level library to write bots.

Hopefully eventually we can merge mineflayer with this project.

Try it out so far

$ MC_EMAIL=you@example.com MC_PASSWORD=your_pass node test.js
logging in to minecraft.net
logged in as user_name
connect
enc key request
write enc key response
confirmation enc key response
writing 205 packet with encryption
login request { id: 1,
  entityId: 839,
  levelType: 'default',
  gameMode: 0,
  dimension: 0,
  difficulty: 1,
  _notUsed1: 0,
  maxPlayers: 20 }

assert.js:102
  throw new assert.AssertionError({
        ^
AssertionError: Unrecognized packetId: 6