MC Modding
Please register and join the community!

The Ultimate Collection of Multiplayer Modding

View previous topic View next topic Go down

The Ultimate Collection of Multiplayer Modding

Post by TheOnly1ne on Mon Oct 24, 2011 3:13 am

Here's some of the thing you need:
Eclipse(USE ECLIPSE!)
ModLoader(Client)
ItemSpriteAPI(Client(Optional, but recommended))
ModLoaderMp(Client & Server)
Minecraft Coder Pack(Assuming you set it up with the above)
A Brain
Java Knowledge

How to set up the MCP with ModLoaderMp:
You need: Fresh bin folder; minecraft_server.jar <--- use the .jar
For client install:
Risugami's ModLoader
Flan's ModLoaderMp Client Version
DELETE META-INF!

For minecraft_server.jar:
ModLoaderMp Server Version
DO NOT DELETE THE META-INF!

Now put those in your MCP/jars folder and decompile
If you get an error in net.minecraft.server.MinecraftServer.java then open spoiler and follow directions, or if you dont just skip it.
Spoiler:
Delete lines 344 - 375 and replace with a }
You are now set up!

Will do video tutorials on my channel so stay tuned. If you want to be notified when they come out subscribe to me at TMGxFarGATE
Ok so let's get started
Do the same for client and server(Start in client and copy over to server)

Block

mod_Sexy
Code:

package net.minecraft.src;
import java.util.Random;
public class mod_Sexy extends BaseModMp {
      public static final Block sexy = new BlockSexyBlocks(200, ModLoader.addOverride("/terrain.png", "/folder/pic.png", Material.ground).setBlockName("name").setHardness(1F);
      public mod_Sexy() {
            ModLoader.RegisterBlock(sexy);
            ModLoader.AddName(sexy, "Name"); // Client only
            ModLoader.AddRecipe(new ItemStack(sexy, 1), new Object[] {
            "X", Character.valueOf('X'), Block.dirt
            });       
      }
      public String Version() {
              return "Sexy";
      }
}

BlockSexyBlocks
Code:

package net.minecraft.src;
import java.util.Random;
public class BlockSexyBlocks extends Block {
      public BlockSexyBlocks(int i, int j, Material material) {
          super(i, j, material);
      }
      public int idDropped(Random random) {
          return blockID;
      }
}


Last edited by TheOnly1ne on Tue Oct 25, 2011 3:14 am; edited 2 times in total

TheOnly1ne
Member

Posts : 10
Join date : 2011-10-20
Location : I'm in your window.

View user profile

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by TheOnly1ne on Mon Oct 24, 2011 3:18 am

I don't care if anybody bumps this. I'm the only topic.

TheOnly1ne
Member

Posts : 10
Join date : 2011-10-20
Location : I'm in your window.

View user profile

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by Strengthowns on Mon Oct 24, 2011 4:03 am

If you do a good SMP Modloader setup tutorial, I'll change it and put it in the official section. Giving credit of course.
avatar
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

View user profile http://www.mcmodding.4umer.com

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by TheOnly1ne on Mon Oct 24, 2011 11:51 pm

Strengthowns wrote:If you do a good SMP Modloader setup tutorial, I'll change it and put it in the official section. Giving credit of course.
Ok done!

TheOnly1ne
Member

Posts : 10
Join date : 2011-10-20
Location : I'm in your window.

View user profile

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by Strengthowns on Tue Oct 25, 2011 1:31 am

Are you sure you need to delete those lines, I heard on simo_415's thread that you replace it with some stuff?
avatar
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

View user profile http://www.mcmodding.4umer.com

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by TheOnly1ne on Tue Oct 25, 2011 2:00 am

Strengthowns wrote:Are you sure you need to delete those lines, I heard on simo_415's thread that you replace it with some stuff?
It was in flan's tutorials. He is the updater for the mod because SDK is "dead".

TheOnly1ne
Member

Posts : 10
Join date : 2011-10-20
Location : I'm in your window.

View user profile

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by Strengthowns on Wed Oct 26, 2011 1:31 am

Ok, I'll test it out later.
avatar
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

View user profile http://www.mcmodding.4umer.com

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by groxmapper on Wed Oct 26, 2011 4:50 am

TheOnly1ne wrote:
Strengthowns wrote:Are you sure you need to delete those lines, I heard on simo_415's thread that you replace it with some stuff?
It was in flan's tutorials. He is the updater for the mod because SDK is "dead".

His quote was for some reason edited. It USED to show what to replace the run() function with, but now it's just a }. Here's what you replace the run() function with:

Code:
  public void run()
    {
        try
        {
            if(startServer())
            {
                long l = System.currentTimeMillis();
                long l1 = 0L;
                while(serverRunning) 
                {
                    ModLoader.OnTick(this);
                    long l2 = System.currentTimeMillis();
                    long l3 = l2 - l;
                    if(l3 > 2000L)
                    {
                        logger.warning("Can't keep up! Did the system time change, or is the server overloaded?");
                        l3 = 2000L;
                    }
                    if(l3 < 0L)
                    {
                        logger.warning("Time ran backwards! Did the system time change?");
                        l3 = 0L;
                    }
                    l1 += l3;
                    l = l2;
                    if(worldMngr[0].isAllPlayersFullyAsleep())
                    {
                        doTick();
                        l1 = 0L;
                    } else
                    {
                        while(l1 > 50L) 
                        {
                            l1 -= 50L;
                            doTick();
                        }
                    }
                    Thread.sleep(1L);
                }
            } else
            {
                while(serverRunning) 
                {
                    commandLineParser();
                    try
                    {
                        Thread.sleep(10L);
                    }
                    catch(InterruptedException interruptedexception)
                    {
                        interruptedexception.printStackTrace();
                    }
                }
            }
        }
        catch(Throwable throwable1)
        {
            throwable1.printStackTrace();
            logger.log(Level.SEVERE, "Unexpected exception", throwable1);
            while(serverRunning) 
            {
                commandLineParser();
                try
                {
                    Thread.sleep(10L);
                }
                catch(InterruptedException interruptedexception1)
                {
                    interruptedexception1.printStackTrace();
                }
            }
        }
        finally
        {
            try
            {
                stopServer();
                serverStopped = true;
            }
            catch(Throwable throwable2)
            {
                throwable2.printStackTrace();
            }
            finally
            {
                                try
                                {
                                        stopServer();
                                        serverStopped = true;
                                }
                                catch(Throwable throwable2)
                                {
                                        throwable2.printStackTrace();
                                }
                                finally
                                {
                                        System.exit(0);
                                }
                        }
        }
    }
avatar
groxmapper
Member

Posts : 27
Join date : 2011-10-24

View user profile

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by lcass on Sun Oct 30, 2011 8:38 pm

wait sdk is dead?

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

View user profile http://www.youtube.com/user/thealcasgroup

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by ikke009 on Sun Oct 30, 2011 9:41 pm

no he is ''dead", as in unactive
avatar
ikke009
Member

Posts : 65
Join date : 2011-10-24
Age : 23
Location : The netherlands

View user profile

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by lcass on Sun Oct 30, 2011 10:56 pm

Why is he not doing mods anymore though he did good mods

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

View user profile http://www.youtube.com/user/thealcasgroup

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by axciom on Fri Nov 18, 2011 3:57 pm

ikke009 wrote:no he is ''dead", as in unactive
Well hes "alive" now XD
but hes still trying to catch up though...just fair for you to know...if you didnt

axciom
Member

Posts : 1
Join date : 2011-10-20

View user profile

Back to top Go down

Re: The Ultimate Collection of Multiplayer Modding

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum