Code Monkey home page Code Monkey logo

Comments (6)

mappum avatar mappum commented on July 17, 2024

That's a good idea. BTW, that site is just a mirror of the actual wiki, which is at http://wiki.vg.

from node-minecraft-protocol.

buschtoens avatar buschtoens commented on July 17, 2024

Wow, that was unexpectedly fast!

You're right there, thanks.

from node-minecraft-protocol.

andrewrk avatar andrewrk commented on July 17, 2024

We did this in a previous version of this project, and surprisingly it's actually easier to use the hex codes instead of enum values, for 2 reasons:

  • over time and minecraft updates, packet names change or become less descriptive, and you have to change the enum names, breaking backwards incompatibility. in other words, the numbers are more stable than the names
  • for a lot of packets, the names are misnomers anyway because the minecraft protocol is so fucked up. numbers remind you that you never know what a packet might be used for...

I'll keep my mind open, but I actually did think about this and decided that it's easier for everybody not to provide an enum.

from node-minecraft-protocol.

buschtoens avatar buschtoens commented on July 17, 2024

Hm, haven't been actively watching the protocol. Are the changes really that drastical? And I thought Minecraft was matureing. Haha.

Their protocol is fucked up indeed.

from node-minecraft-protocol.

roblabla avatar roblabla commented on July 17, 2024

It wouldn't be too hard to implement this on the script-side instead of library-side anyway, with only the relevant packets. I believe it's better this way.

from node-minecraft-protocol.

buschtoens avatar buschtoens commented on July 17, 2024

Yeah, convinced. Protocol is low level and acts as a bridge from the raw protocol to an abstraction layer. Abstracting scripts need to be modified on protocol updates anyways.

from node-minecraft-protocol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.