Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Does anyone know of a good resource available to learn how to do GUIs in Forge 1.3.2? All the 1.3.2. GUI tutorials out there seems to be ModLoader specific.

You can look at the source from my Particle Decoration Mod, here:

http://www.minecraftforge.net/forum/index.php/topic,1909

 

It has both GUI types, with and without container.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

What type of guis, container or normal?

 

Container if possible

Just follow the furnace source, and another mod with GUI's.

You have to use IGuiHandler for registering it.

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Where do you register your TileEntity? If it's not registered, it won't be placed with the block and so it won't open a GUI because it can't find any TileEntity.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Where do you register your TileEntity? If it's not registered, it won't be placed with the block and so it won't open a GUI because it can't find any TileEntity.

And be sure to have the is useable by player and canInteractWith functions not returning false.

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Well I actually got my GUI working, but I'm having two weird bugs:

 

1. Whenever the first slot in my clickbar is empty, the text in my GUI dims from white (or whatever color) to gray (or a darker version of whatever color).

 

2. When I put a block/item in any of my slots (there are 5), it duplicates it to all of the slots, and they all disappear when I remove any one of them.

Ok so I figured out why my items were duplicating, but I still haven't nailed down why my text is changing colors :/

My block isn't a furnace. It's just a BlockContainer. No function. I'm also having a problem, where if I have more than one block that's supposed to open a gui, one says, "A mod tried to pen a gui on the server without being a NetworkMod" :/

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.