Minecraft Blogs / Tutorial

Lets Make A Mod! Ep.2 BaseMod (ModLoader Addition)

  • 504 views, 2 today
  • 1
  • 0
lilpsyco99's Avatar lilpsyco99
Level 43 : Master Modder
52
Hello my fellow beautiful people im back again and I got a few messages to write some more written tutorials so I hopped on planetminecraft and got to work and here we are now....anyone know how to mod? cause I don't jkjk;) but lets get into this this tutorial is going to be our basemod for modloader.

Now before we go any further your going to want to know how to setup if you dont know how click [here]
that will bring you to my setup tutorial.

Now for those who do know how to setup and have done it we are going to first off open eclipse if you don't know where to get eclipse or you don't have eclipse click [here]. For those who do have eclipse please continue on. First we are going to out mod folder we made in the last modloader tutorial and open it up. We are now inside our mods folder you should see a folder called "eclipse" open that up. Now that you have the eclipse folder open go above it to the address bar and copy the link. Now we are going to go and double click on our eclipse application it should bring up a dialogue box asking for a workspace insert the address we just copied. Now we should be in a interface saying client and server hit client once you inside find src and open it now you should see a bunch of classes. Now right-click and make a new class you are going to name this class like so: mod_**** now we should have a new class what you need to do is paste this coding below:

package net.minecraft.src;

public class mod_YourModName extends BaseMod
{
public void load()
{

}
public mod_YourModName()
{

}

public String Version()
{
return "3.1415927";
}
}

Now we need to understand this coding so we will take it step by step so lets start from the top, shall we?

Ok so this

package net.minecraft.src;

public class mod_YourModName extends BaseMod
{

Basically means it is extending the class BaseMod which will give this class all the properties of that class.

Now as for the public void load and string version, string version declares the version of the mod and void load will be most of your coding and declaring.
Now thats all for this tutorial we have made out base class next tutorial will be a item:)

Lets Make A Mod! Ep.2 BaseMod (ModLoader Addition)
go on do it ;P
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome