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

Is there anyone willing to teach me or give me a link to something that i can use to teach me how to make server and client packets. i have a custom inventory that i want to try to get to work again and the help would be appreciated.

Forge's documentation has a section on networking here. This includes the Simple Network Implementation, which you should use to send your packets.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

  • Author

Thanks that helped alot. it doesnt tell me one thing is how do i make  a packet that opens a gui. It gives me that basics but it doesnt give me the full story.

Send a packet to the appropriate side with the necessary information and then open a GUI from your packet handler.

 

Are you sure you need to send a packet? What type of GUI is this and where are you opening it from?

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Where are you trying to open it from?

 

If it's on the server (e.g. when the player right clicks a block/item), just call

EntityPlayer#openGUI

directly and FML will send a packet to the client telling it to open the same GUI.

 

If it's on the client (e.g. when the player presses a key), send a packet to the server and then call

EntityPlayer#openGUI

in the handler.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.