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,

 

I'm trying to make a GUI for my block. And all works, but the GUI-Texture is not at the right position on the screen, and all slots are not at the right position. I tried to just add something to x and y but then is one row of the slots in the right position, and the other rows are not :(. I think i only have to post the GUI-Texture and the GUI-Container class because the TileEntity has nothing to do with the texture:

 

http://gw.minecraftforge.net/vsCx

 

http://s14.directupload.net/images/130810/gvwr8n57.png

 

ss7

You sir are a god damn hero.

What is the "right" position ?

 

Note that slots positions are determined in the Container class, not by the Gui ;)

Check the gui tutorials by hydroflame on the forums if you want to learn some tricks to get the images to scale and position correctly :)

If you guys dont get it.. then well ya.. try harder...

  • Author

Hello,

 

Thank you very much, GotoLink. I just looked at the code of ContainerFurnace and copied it into my Container class. And now it works perfectly!!! ;D

 

ss7

You sir are a god damn hero.

Guest
This topic is now closed to further replies.

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.