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

Hello everyone!

 

I have some problem with a custom furnace that I have been making, that whenever I right click on it, it just crashes, where as it's supposed to open a gui!

And I honestly cannot find out why, I have searched around the web for so long now.

I really hope you guys can help me figure out what is wrong, thank you so much :)

 

Here is the full project on github :

https://github.com/Krealle/MinecraftForgeMod/tree/master/mod

 

The main files for the furnace are:

handler/RedGuiHandler

block/RedFurnace <-- Where the error happens line 62

block/RedBlocks

gui/GuiRedFurnace

tile_entity/TileEntityRedFurnace

 

And here is the crash log:

http://pastebin.com/7DqjrQR5

 

Again thank you so much :)

There is a gui handler in the com.krealle.handler package and it's coded correctly, but I don't see any calls to the proxy.registerNetworkStuff() function that registers it anywhere in your main class.

So, my guess is that it's never actually registered to forge and that's why you're getting an error as though you didn't have one. Technically, you don't.

This is the way to register it

        NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GUIHandler());

 

  • Author

There is a gui handler in the com.krealle.handler package and it's coded correctly, but I don't see any calls to the proxy.registerNetworkStuff() function that registers it anywhere in your main class.

So, my guess is that it's never actually registered to forge and that's why you're getting an error as though you didn't have one. Technically, you don't.

 

Thank you so much! I totally forgot to check for that :)

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.