You need to set the texture uv's for each vertex you create manually if your using createmesh. The u & v should be in the range 0.0 - 1.0, which then corresponds to a position on the texture.
Once you've done that entitytexture should work.
Once you've done that entitytexture should work.