Write to nbt