Added external NBT saving for custom mode