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, so I have made an item that has a GUI. I want the gui to save the data i have typed in a text box to the Item. However, I cannot get this to work properly. I believe I have to use packets. How would i got about this?

you could e.g send a packet to the server when you close the gui or press a button.

the server will handle the message do something (or not) and will then (if it was succesful) send a packet back to the client. this is important to prevent cheating and stuff all changes should be made on the server and then synced with the client. 

 

for packets look up SimpleNetworkWrapper: https://mcforge.readthedocs.io/en/latest/networking/simpleimpl/

you have to send a packet to the server with the data -> server checks the data, if its valid -> do something -> send a packet back to the client to update the data

in the packets you send the data and in the handler you decide what happens with that data 

Edited by eatthenight

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.