Skip to content

Instantly share code, notes, and snippets.

{
"name": "fish.pufferfish.raw",
"id": 206,
"icon": "fish_raw_puffer_fish",
"use_animation": "eat",
"use_duration": 32,
"max_damage": 0,
"stacked_by_data": true,
"food": {
@overjt
overjt / forge.js
Created January 14, 2016 19:33
Server-list-ping feature of Minecraft Forge servers.
var net = require("net");
function makeBuf(server, port) {
var bufSize = 7 + server.length;
var buffer = new Buffer(bufSize);
buffer.writeUInt8(bufSize - 1, 0);
buffer.writeUInt8(0, 1);
buffer.writeUInt8(5, 2);
buffer.writeUInt8(server.length, 3);
@deathcap
deathcap / forge.js
Last active January 18, 2016 23:15 — forked from overjt/forge.js
Server-list-ping feature of Minecraft Forge servers.
var net = require("net");
function makeBuf(server, port) {
var bufSize = 7 + server.length;
var buffer = new Buffer(bufSize);
buffer.writeUInt8(bufSize - 1, 0);
buffer.writeUInt8(0, 1);
buffer.writeUInt8(5, 2);
buffer.writeUInt8(server.length, 3);
@jomo
jomo / Minecraft Accounts.md
Last active July 1, 2026 11:33
Tracking down Minecraft account creation

Tracks down when a Minecraft account was created.

How it works

Mojang has an API endpoint for usernames:

https://api.mojang.com/users/profiles/minecraft/<name>?at=<timestamp>

It can be used to find the UUID of an account, by username it used at the given time.
It returns either 200 OK or 204 No Content – indicating that the username was not in use at the time.

@deathcap
deathcap / babel.md
Last active February 17, 2016 07:32
My Big List of Annoyances with Babel/ES6 Transpilation

Complicates development-code distribution: When a user checks out a new revision of the source code from git, the changes won't immediately have any effect, unlike (most) changes from non-transpiled modules. Instead they have to be sure to run npm run-script prepublish to recompile.

Actual user conversation from chatroom (lightly edited for relevance):

developer Jan 24 15:33 update, I fixed that recently
user Jan 24 15:33 ooooohhh, ummm
  the current [module] has that update, or do I need a special fork version from you?
other-developer Jan 24 15:35 It was merged yeah