How do I implement a custom packet? (Sending text from GUI to server)

Started by Lofty on Mon, 01/02/2023 - 22:00

Topic category: Advanced modding

Last seen on 04:04, 3. Feb 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I implement a custom packet? (Sending text from GUI to server)
Mon, 01/02/2023 - 22:00

Hello friends,

I want to send the text from a GUI text field to the server.

This requires a custom packet implementation.

I tried following the steps in this thread over here but the instructions seem to be outdated and do not work with latest MCreator.

Can anyone show me a basic example of a custom packet implementation that works with MCreator 2022.3?