I am pretty sure it was always meant to be a sandbox game because it was made as an Infiniminer clone at first. However, a little later Notch probably considered turning it into an RPG/sandbox game considering the fact that one of the working titles was "Minecraft: Order of the Stone."