Jump to content

Packet Help


PapaVinny

Recommended Posts

Hello, trying to get packets to work. Here is my mod on github: https://github.com/PapaVinny/MCSwordFightP3/tree/master/McMod/MCSwordFight/src/main/java/com/papavinny/swordfight

I copied directly from the forge docs, to no avail. I just get a bunch of errors without crashing. The main classes to look in are Main, Dodge, MyPacket, MyPacketHandler, and SwordFightPacketHandler. They have the everything dealing with the errors I'm getting from sending the packet in the dodge class. Also, I see that the way I called keybindings is wrong, will change.

 

Link to comment
Share on other sites

  • Dang that's my mc username, I'll change the filepath names.
  • Got rid of those classes right before I uploaded, forgot about that.
  • Thank you.
  • ^
  • Sorry, I should have said that I was planning on doing something else with that. I was trying to do exactly what it said in forge documentation so that I am able to get it right. I actually want to get a sound to play in the server's world at a player's location as soon as I learned the problem.

Thanks for the good feedback, the page you linked will be of great help.

Edited by PapaVinny
Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.