Jump to content

Making a mod work on a server?


rex41043

Recommended Posts

I'm not sure what I need to do to my mod to make it work on a server can eny one help?

Link to comment
Share on other sites

On Minecraft 1.3+ you need as much as you need to make a client mod work.

 

Mods are no longer client / server, they are distributed in universal packages, so the same code works both on clients and servers (because the client, internally, is a server too);

Did I help? Hitting 'Thank You' would be appreciated.

 

Soon, the lost city will rise from the bottom of the ocean, and spread it's technology across Minecraft.

Link to comment
Share on other sites

You need a client and a common proxy.

example:

 

 

package archangel.client;

 

import net.minecraftforge.client.MinecraftForgeClient;

import archangel.emeraldtools.CommonProxy;

 

public class ClientProxy extends CommonProxy {

 

@Override

public void registerRenderers() {

MinecraftForgeClient.preloadTexture(ITEMS_PNG);

}

 

}

 

 

 

 

 

package archangel.emeraldtools;

 

public class CommonProxy {

    public void initRenderingAndTextures() {}

   

public static String ITEMS_PNG = "/EmeraldTools.png";

 

// Client stuff

public void registerRenderers() {

// Nothing here as this is the server side proxy

}

}

 

 

 

Also follow this http://www.minecraftforge.net/wiki/Tutorials/Making_the_base_mod_file and most importantly this http://www.minecraftforge.net/wiki/Tutorials/Upgrading_To_Forge_for_1.3.1#The_proxy_system

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.