Add the messiest code ever for writing NBT, need to sleep