Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

minecraft-protocol-lunarclient 1.0.0

Install from the command line:
Learn more about npm packages
$ npm install @solar-tweaks/minecraft-protocol-lunarclient@1.0.0
Install via package.json:
"@solar-tweaks/minecraft-protocol-lunarclient": "1.0.0"

About this version

minecraft-protocol-lunarclient

GitHub package.json version

Custom packets used by Lunar Client for node-minecraft-protocol

Usage 🛠️

const lunarclient = require('minecraft-protocol-lunarclient');

/* Register the channel for the Minecraft Client */
lunarclient.registerClient(client);

/**
 * Send a LC Packet to the Minecraft Client
 * For the channel name if you chose `Lunar-Client` put that one of course instead of `lunarclient:pm`
*/
client.writeChannel('lunarclient:pm', {
  // Packet to send
  id: 'teammates',

  // Content of the packet
  leader: '827f8c48-cdb2-4105-af39-df5a64f93490',
  lastMs: 25,
  players: [
    {
      player: 'd204eee2-9224-4046-9e98-4da572fe2c4b',
      posMap: []
    }
  ]
});

Authors 💖

Thanks to Beanes#4501 for the scheme!

Details


Assets

  • minecraft-protocol-lunarclient-1.0.0-npm.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0