fullbright soruce code help

Posts 17 of 7 · Page 1 of 1
fullbright soruce code help
Please help why won't this work?
Code doesn't error, it just won't work properly xD!
Can anbody point me in the right direction?

Code:
public class Brightness extends TestMod
{

	public Brightness()
	{
		super("Brightness", "Brightens the world", Keyboard.KEY_C, 0xFFF8C6, EnumGuiCategory.WORLD);
	}

	
	public float fakeGamma = mc.gameSettings.gammaSetting;
	private boolean isFading = false;
	private static final float FADE_INTERVAL = 1.0F;
	public void onUpdate(EntityPlayerSP player) {
		if(isEnabled()) {
		
	    mc.gameSettings.gammaSetting++;
	}else
	    mc.gameSettings.gammaSetting = 1.0F;
	}


	}
How the f can you make a mistake with fullbright lol.
Looks like you only added 1 to the gamma lol
Try this in the onUpdate(out of my head lol)

Code:
if(isEnabled() && mc.gameSettings.gamma < 80000)
{
    mc.gameSettings.gamma += 10;//+10 cause 1 everytick would be a bit slow
} else if (!isEnabled() && mc.gameSettings.gamma > 1F)
{
    mc.gammaSettings.gamma -= 10;
}
Doesn't work but no error either!

update: I couldn't get the full bright code to work to save my life.. I used to hard-code everything now I was going for an OPP method. Everything is set in-place and works perfect. Some of my hacks are broken like Fullbright for example.. I have it in it's own class also.

Anyways,if anyone knows why it might not work or a fix or point me in the right direction would be helpful.
I just opened up guiingame for now and added a permanent fullbright. I'd like to change this so the user has a option to decide.
Do you even call the onUpdate method?
i just always use
Code:
if(Var.fullbright)
        	{
        		mc.gameSettings.gammaSetting++;
        	}else
        	{
        		mc.gameSettings.gammaSetting = 0.5F;
        	}
Open minecraft folder, open setting.ini, change gamma to 9999. PROFIT !!!
You just made this thread:
 
Code

Code:
	public void onUpdate(EntityPlayerSP player) {
		if(isEnabled()) {
		
	    mc.gameSettings.gammaSetting++;
	}else
	    mc.gameSettings.gammaSetting = 1.0F;
	}

Without even extending to the class it was in. After you do that you put @Override above that code.
Posts 17 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?