Skip to content

Instantly share code, notes, and snippets.

View coryjreid's full-sized avatar

Cory J Reid coryjreid

View GitHub Profile
@coryjreid
coryjreid / nbt.lua
Created March 20, 2020 05:43 — forked from pingbird/nbt.lua
Lua NBT encoder and decoder
--[[
Lua NBT encoding and decoding by PixelToast, public domain
example output (serialized) from a player.dat: http://hastebin.com/kogupimizi.txt
requires string.pack/string.unpack
note: nbt is usually gzipped, you must inflate it before decoding
]]
nbt={}