Jump to content

Recommended Posts

Posted

Hello! I'm rephrasing my question here since I didn't make it very clear last time.

I was wondering what the command (and imports) to adjust the client gamma was for forge 1.17.*, since I've searched through the internet and found nothing useful.

I'm making a potion that is intended to adjust the client gamma, although everything I've tried doesn't seem to work.

Any help would be appreciated!

Thanks in advance.

Posted
1 minute ago, diesieben07 said:

You made your question perfectly clear. However we are not going to support you using MCreator.

I didn't say I was using MCreator....

Indeed in my last post I did state that I was using mcreator because I was showing a friend how to do it, however I then changed my mind and figured that it would be easier to rewrite the code without mcreator.

So I am not using mcreator... Does that still invalidate my question? Does the fact that I mentioned mcreator thus ban me from asking any further questions?

Posted
Just now, diesieben07 said:

I mean...

Thanks for replying.

As I said in my reply to your earlier statement,

3 minutes ago, biran4454 said:

Indeed in my last post I did state that I was using mcreator because I was showing a friend how to do it, however I then changed my mind and figured that it would be easier to rewrite the code without mcreator.

 

Posted

Well this forum has been very useful in telling me that the mods don't read past the first line of your posts.

I'm going to leave the forum peacefully but to clear anything up:

1. I initially stated that I was using mcreator, but said that it was just to show my friend how to use it.

2. I then decided to continue my previously created mod that I had made normally (no mcreator involved) using the same idea of a potion that modifies gamma.

3. I was not asking for help with mcreator, I was asking for help with programming java with forge, and if there's a better forum to post questions concerning creating mods with forge, please tell me. Preferably one where mods actually read past the first line of your post before deciding on whether it's an appropriate topic.

All the best

Posted

For example doing this is in the start of the render tick

ORIGINAL_GAMMA;

settings = Minecraft.getInstance().gameSettings;
if (player.isPotionActive(myeffect))
{
  ORIGINAL_GAMMA = settings.gamma;
  settings.gamma = 100;
}

then at the end of the render tick restore it.

Just my thought.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.