Sunday, 5 May 2013

Getting Started


This tutorial covers the basic setup of forge and everything you need to get modding. It has been graded Beginner.

We won't be doing any coding in this tutorial, instead will install everything we need, which is really simple to do! The best way to explain this is on a video, all links are in the description. Video!!


Friday, 3 May 2013

/Commands


This tutorial explains how to add simple /commands, for example the /gamemode command. This tutorial has been graded Easy and requires Basic Setup.

First of all, you need to make a new class file, something like CommandReply.

There is a file in Minecraft already that holds all the basic things you need to make a command, called CommandBase, found in net.minecraft.command. Setup your Command file to extend this, which means you have to add the unimplemented methods. Do that and you should end up with something like this:

package mod_WoRF;

import net.minecraft.command.CommandBase;

import net.minecraft.command.ICommandSender;

public class CommandReply extends CommandBase

{

@Override

public String getCommandName() 
{
// TODO Auto-generated method stub
return null;
}

@Override

public void processCommand(ICommandSender icommandsender, String[] astring) 
{
// TODO Auto-generated method stub

}

}


The first thing to do is set a command name. Simply replace the return null in the getCommandName() function to return "yourcommandname", like this:

@Override
public String getCommandName() 
{
return "reply";
}

The next thing to set up is how the player uses the command. You can add a function from the CommandBase clase to do this. This is the basic setup for it:

public String getCommandUsage(ICommandSender par1ICommandSender)

{
    return "/" + this.getCommandName();
}

This basically says the player has to type /reply (in the case of my command).

The final bit of coding required in the command file is setting up what the command actually does! For this we use the processCommand function. All my command does it reply to the user, so I will the call function that makes something pop up in the text box. This function is as follows:

@Override
public void processCommand(ICommandSender icommandsender, String[] astring) 
{
icommandsender.sendChatToPlayer("Hello!!");
}

The whole file should now look like this:

package mod_WoRF;

import net.minecraft.command.CommandBase;

import net.minecraft.command.ICommandSender;

public class CommandReply extends CommandBase

{

public String getCommandUsage(ICommandSender par1ICommandSender)

{
   return "/" + this.getCommandName();
}

@Override
public String getCommandName() 
{
return "reply";
}

@Override

public void processCommand(ICommandSender icommandsender, String[] astring) 
{
icommandsender.sendChatToPlayer("Hello!!");
}

}


The command won't work unless you register it in the ServerCommandManager class, found in net.minecraft.command. To register it simply add this code with the name of your command file with the other command registers.

this.registerCommand(new CommandReply());

And that's everything! I hope this has helped, if you have problems post below. This is the bare essentials that you need, if you want to know how to do more advanced things just ask, I thought I'd keep it simple and not over complicate it, you can always look in the other Command classes in net.minecraft.command. 


DaBigJoe's Modding Tutorials


These are my modding tutorials for forge, any requests ask in the comments, and if you have problems post them in the relevant tutorial.

1.5.1

      Tutorial       Difficulty                        Requirements

Getting started  Beginner                              None

  
  /Commands       Easy                              Basic Setup

Sunday, 3 February 2013

End of the Rainbow Mod











IT'S BACK!!

So I was kinda hoping I could release this big update with a big release of Minecraft, but Forge hasn't been released for 1.7, so I might as well release it for 1.6.4. Sorry it's been ages, I've been working on something else (PXY) ;)

This update brings the RAINBOW DIMENSION. Rainbow gear has now become a more end game item, only obtainable after diamond. Make a portal out of mossy obsidian (clovers can be collected from plants - like seeds), light it with a flint and steel, and off you go!! Rainbows now only spawn in the rainbow dimension, and don't go really deep. Instead the ground around the rainbow has dirt and stone containing rainbow shards (red, blue, yellow and green). Craft these into rainbow dust, smelt them, and you've got your bars! Also added unicorns (very basic), and beware, the leprechauns still protect the rainbow!!

I am also working on a big Minecraft project with about 10 other people, and we could do with more builders, artists (textures and models) and coders. If you're interested email me: dabigjoe97@gmail.com

Updated 04/01/2014 
Posted Image


Posted Image
Latest version v3.0.1 for Minecraft 1.6.4



Forge Required



Update Log


  • + Rainbow dimension
  • + Mossy obsidian portal
  • + Unicorns in rainbow dimension
  • + Rainbow shards and dust
  • + Clovers now obtainable from seeds
  • - Rainbow ore
  • - Rainbows don't spawn in the overworld
  • - Cavern at bottom of rainbow

Downloads



   Forge


       1.6.4

       1.6.2

       1.5.2

       1.5.1

       1.4.7


Installing



My Links:


Saturday, 2 February 2013