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

So I recently started updating my stuff to 1.7 which in this case is a faster furnace. I have been mainly just getting all the stuff by looking at the vanilla furnace from 1.6 and 1.7, comparing and contrasting them to make a new furnace for 1.7. The block places and everything but when I can't get the Gui to appear. From adding some debug code I have found out that the onBlockActivated() is calling the openGui(), other than that haven't been able to track it down. But if I were to bet anything it will be either the GuiHandler or the Register in the main modding class because I could find references for those.

 

No errors are thrown except for texture issues but I never setup textures except for the Gui.

I made pastebins so that I could point out most likely causes.

 

Main Modding Class

http://pastebin.com/UVxUyFDu

lines: 37, 39, 148, 149. Didn't know exactly how to adjust for the update so I kinda winged it.

 

Block Class

http://pastebin.com/R4jqH1kU

 

TileEntity Class

http://pastebin.com/2TYbnn52

 

Gui Handler

http://pastebin.com/uPYVVRJB

 

Gui Class

http://pastebin.com/4LrCU3Ch

 

Container Class

http://pastebin.com/aW4ejTvX

 

Don't judge still learning how all this stuff works.

  • Author

I see what you mean with it being a forge method looking at it again and I don't know why i said vanilla cause I looked at that method before. The original problem is eclipse autofilling it filled the parameters and put in the wrong info and I never got the error.  So it should be player.openGui(Rustic.instance, Rustic.guiIdCookStove, world, x, y, z); and that calls the FMLNetwrok handler and uses this to refer to the player. Is that correct? Sorry if I seem like an idiot, still learning the whole concept of everything that's going on.

  • Author

Ok thanks. What would be the best way to register a registerItemRenderer? I was told to do it in the ClinetProxy on 1.6 but I don't know if that is a good idea or if its still done the same way.

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.