ok I was stuck on this for a while too. you leave that code, it's good. Go to wed, make a cube in your level like a sky cube, select it and go to edit>hollow block. Now give it a texture, select properties>blocks and instead of shaded tick the 'sky' box. build your level, and you should have a skybox.