Skip to content

Instantly share code, notes, and snippets.

View wgaylord's full-sized avatar

William Gaylord wgaylord

View GitHub Profile
Play - toClient
New Packets
chunk_batch_finished - Marks the end of a chunk batch and
says how many chunks were in the batch
According to wiki.vg this is used with chunk_batch_start
and also chunk_batch_received to estimate the best chunks
per tick to send for your network speed.
Vanillia
[18:01:53] [Server thread/INFO]: Stopping the server
[18:01:53] [Server thread/INFO]: Stopping server
[18:01:53] [Server thread/INFO]: Saving players
[18:01:53] [Server thread/INFO]: Saving worlds
[18:01:54] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld
[18:02:17] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether
[18:02:17] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end
[18:02:17] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[18:02:17] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
@wgaylord
wgaylord / play.c
Last active December 13, 2023 22:49 — forked from blippy/play.c
Playing hard-coded audio on an ESP32 via DAC
#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "sdkconfig.h"
#include <driver/dac.h>
// The 8-bit values in our sound sample
#include "track.h"
@wgaylord
wgaylord / gist:6806c0b0eb93ea6106e8ddbabda076cb
Created December 30, 2023 21:59
Mineflayer 1.20.2 with PR 3243 and chunk batch fix from its comments.
> [email protected] mocha_test
> mocha --reporter spec --exit -g 1.20.2
mineflayer_external 1.20.2v
Port chosen: 40165
downloading and starting server
Unpacking 1.20.2/server-1.20.2.jar (versions:1.20.2) to versions/1.20.2/server-1.20.2.jar