Jump to content

Recommended Posts

Posted

Time for what's probably a noob question!

I've never worked with multiplayer modding before, and have no idea how I'm supposed to get packets working. I noticed there's a packets and channels section in the wiki page for updating to 1.3, but there's nothing in there. Any idea when that's going to be done?

In the mean time, I'm trying to set up a gui that handles a custom crafting thing for my mod. When a button is pushed in the gui, the container looks at what's in the two core slots and writes some NBT stuff to the itemstack in the wand slot. How should I make this work? Should the button send off a packet to the server, where all the crafting stuff is done, and then send a packet back with the finished product? if so, how would I go about doing this with what I currently have?

 

If any of my code is needed, here:

(Just a warning, I'm a messy coder, so prepare your eyeholes)

 

GuiWandCrafting.java

 

  Reveal hidden contents

 

 

ContainerWandCrafting.java

 

  Reveal hidden contents

 

 

The addWandMod method from SorceryHelper

 

  Reveal hidden contents

 

 

Tell me if there's any more information you need.

 

Thanks

 

EDIT: Changed the question a bit.

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.