Jump to content

What do I have to change for a server mod?


MikeZ

Recommended Posts

This is totally depending on your code.

Usually you can just run your mod on client and server side, unless your code runs some stuff that will crash the server (like playing sound effects). You will have to mark these code like:

@SideOnly(Side.CLIENT)

Link to comment
Share on other sites

Do I have to make a version for the client and one for the server of the mod?

Because, if I make the mod for the server like this:

 

 

@Mod(modid = "mike", name = "MikesMod", version = "1.0.0")

@NetworkMod(clientSideRequired = false, serverSideRequired = true)

 

 

 

It isn't working.

 

I changed all @SideOnly(Side.Client) to @SideOnly(Side.Server)

 

Please help me,

Mike

 

Link to comment
Share on other sites

Hi

 

By definition, a client side mod doesn't need to be run on the server.  So installing it on the server doesn't make any sense.

 

Do you mean that your mod runs in single player mode, but you want to run it multiplayer?

 

That might be very easy or very hard depending on how you've coded it.  Maybe you could describe your mod a bit more.

 

-TGG

 

 

Link to comment
Share on other sites

Hi

 

By definition, a client side mod doesn't need to be run on the server.  So installing it on the server doesn't make any sense.

 

Do you mean that your mod runs in single player mode, but you want to run it multiplayer?

 

That might be very easy or very hard depending on how you've coded it.  Maybe you could describe your mod a bit more.

 

-TGG

 

I solved it, thanks.

 

Mike

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.



×
×
  • Create New...

Important Information

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