glPushMatrix();
glTranslated(x, y + 10, z);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glMatrixMode(GL_TEXTURE);
glPushMatrix();
glTranslated(0.5, 0.5, 0);
glRotated(Minecraft.getMinecraft().theWorld.getTotalWorldTime(), 0, 0, 1);
glTranslated(-0.5, -0.5, 0);
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("textures/blocks/pumpkin_face_on.png"));
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL13.GL_CLAMP_TO_BORDER);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL13.GL_CLAMP_TO_BORDER);
glTexParameteri(GL_TEXTURE_2D, GL_COLOR, 0);
Tessellator tessellator = Tessellator.instance;
tessellator.startDrawingQuads();
tessellator.setBrightness(240);
tessellator.addVertexWithUV(0, 1, 0, 0, 1);
tessellator.addVertexWithUV(1, 1, 0, 1, 1);
tessellator.addVertexWithUV(1, 0, 0, 1, 0);
tessellator.addVertexWithUV(0, 0, 0, 0, 0);
tessellator.draw();
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glDisable(GL_BLEND);
glPopMatrix();