Jump to content

Client only build possible?


Zethariel

Recommended Posts

Hello,

 

Just a quick question - is it possible to build(compile) a mod that has only client-side code, making the server part exclusive to another build? The reason for this is that I'd like for some features to be available later for the general public, instead of hosts grabbing the latest version and taking traffic away from my minecraft server.

I do pony stuff :3

Link to comment
Share on other sites

That's going to be very complicated to create compared to a universal mod. You could just create a file kind of like the minecraft server EULA that requires the server admin to put in a certain code for the mod to work.

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Link to comment
Share on other sites

In simple words: Nooope.

 

In bit longer:

Nothing stops you from coding in 2 separate packages and compiling once, then packing to 2 different .jars.

You just have to make sure to not cross-reference stuff.

I for one have 4 mods(@Mod) in my workspace - API, Common, Client and Server. Logically - You always need API and Base + one of two sided mods to run stuff on proper side. But to simply add on your own stuff (for devs) you can just work with API.

When compiling I just grab packages and throw them in 3 Jars: API.jar, Server.jar (common+server packages), Client.jar (common+client packages)

+ There is some trickery with side only stuff, but that is my magic.

 

In final case:

Everything is possible, nothing stops you from learning how to use build script and write what should be put where or in what .jars.

1.7.10 is no longer supported by forge, you are on your own.

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.