Jump to content

Recommended Posts

Posted

Hi, so im new to using forge for modding, but when i used mcp i was able to change the original minecraft folders. Basically i want to change the GuiButton, but im not able to edit any of the original minecraft files. On mcp i could just click on GuiButton.java and do what i wanteed with it, but now its GuiButton.class and im not able to edit it. Is there any way of editing this file, and any of the other mineraft files or no? If not is there any other way i can try to have custom gui buttons and what not.

Posted

You don't. That's the point. Minecraft should be treated as a library. You should write your mod in a way that doesn't break other things.

If you can't do something then think about what you're doing and see if it'd be a good fit to include in Forge. 

As Forge is designed to fill in the gaps where vanilla api fails.

 

Also, you don't need to edit GuiButton to have a "custom gui button" This is java.. you can extend the object and change whatever you want. To use those changes just use your subclass instead of vanilla's.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.