change xp
This commit is contained in:
parent
f647862095
commit
e784b65be7
2 changed files with 7 additions and 6 deletions
|
@ -34,13 +34,14 @@ public class RenderXp extends Render<EntityXp> {
|
|||
int sky = light / 65536;
|
||||
GL13.glMultiTexCoord2f(GL13.GL_TEXTURE1, (float)block / 1.0F, (float)sky / 1.0F);
|
||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
float color = ((float)entity.xpColor + partial) / 2.0F;
|
||||
int r = (int)((ExtMath.sin(color + 0.0F) + 1.0F) * 0.5F * 255.0F);
|
||||
int g = 255;
|
||||
int b = (int)((ExtMath.sin(color + 4.1887903F) + 1.0F) * 0.1F * 255.0F);
|
||||
float color = ((float)entity.xpColor + partial) / 16.0F;
|
||||
int g = (int)((ExtMath.sin(color + 0.0F) + 1.0F) * 0.5F * 255.0F);
|
||||
float n = (int)((ExtMath.sin(color + (float)Math.PI) + 1.0F) * 0.5F * 255.0F);
|
||||
int r = (int)(n * (value / 10.0f));
|
||||
int b = (int)(n * ((10 - value) / 10.0f));
|
||||
GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
|
||||
float size = 0.3F;
|
||||
float size = 0.25F;
|
||||
GL11.glScalef(size, size, size);
|
||||
RenderBuffer rb = Tessellator.getBuffer();
|
||||
rb.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR_NORMAL);
|
||||
|
|
|
@ -22,7 +22,7 @@ public class EntityXp extends Entity implements IObjectData
|
|||
/**
|
||||
* A constantly increasing value that RenderXPOrb uses to control the colour shifting (Green / yellow)
|
||||
*/
|
||||
public int xpColor;
|
||||
public int xpColor = this.rand.zrange(1000);
|
||||
|
||||
/** The age of the XP orb in ticks. */
|
||||
public int xpOrbAge;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue