JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10324
  • Score
    100M100P100Q165697F
  • License MIT

An easy way to query PrismarineJS/minecraft-packets

Package Exports

  • minecraft-packets

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (minecraft-packets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-minecraft-packets

NPM version Build Status Discord Try it on gitpod

Minecraft packets in a github repo.

Usage

See examples here

const packets = require('minecraft-packets')

console.log(packets.pc['1.16']['from-server'].difficulty)

// output:
// [
//  {
//    json: { difficulty: 2, difficultyLocked: false },
//    raw: <Buffer 0d 02 00>
//  }
// ]

API

Read the api here