You are viewing our Forum Archives. To view or take place in current topics click here.
|MC Modding!|Everything You Need!|Tutorial's!|
Posted:
|MC Modding!|Everything You Need!|Tutorial's!|Posted:
Status: Offline
Joined: Aug 11, 201113Year Member
Posts: 2,028
Reputation Power: 111
Status: Offline
Joined: Aug 11, 201113Year Member
Posts: 2,028
Reputation Power: 111
Welcome!
Welcome to the brand new place to get everything you need on how to do pretty much anything you would ever need to do in Minecraft to do with modding!
This thread is broken down into several main points.
-Tutorial's-
-Video's-
-How To's-
[ Register or Signin to view external links. ]
This is our tutorial section, here you can see our wide array of tutorials.
There is only one tutorial as the moment as I am currently writing out more.
Custom Variable Class:
Okay, first make a new class called Variable.java (This can be called anything this is just an example)
Once you have created this file you will want to set it up like this.
Import these into the file, you will most likely need them at some point.
package net.minecraft.src;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.net.*;
import java.io.*;
import java.util.*;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Random;
import net.minecraft.client.Minecraft;
import org.lwjgl.opengl.GL11;
import org.lwjgl.input.Keyboard;
import java.util.List;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
Now we have that setup lets make the actual class.
Put this, note where it says public class Variable you have to call this the name of the file.
public class Variable
{
}
From here you can put your boolean's in there.
I suggest making your code nice and tidy like so.
//PvP Booleans
public static boolean Aimbot = false; //Done
public static boolean Aura = false; //Done
public static boolean Speed = false; //Done
public static boolean Norender = false; //Done
public static boolean Noswing = false; //Done
public static boolean Nocheat = false; //Done
public static boolean Punch = false; //Done
public static boolean GuiRadar = false; //Done
public static boolean Tracer = false; //Done
//Xray
public static boolean Opacity = false; //Done
public static boolean Enchant = false; //Done
public static boolean Chest = false; //Done
public static boolean Mob = false; //Done
And that concludes the tutorial on your own class.
Simple chat commands:
Hello, in this tutorial I will be showing you how to create a custom .help or -help command.
First navigate your way to EntityClientPlayerMP.java from there on search for this code:
public void sendChatMessage(String s)
This is what we need to change...
First you will need to write out this, note that the - can be replaced with any prefix you would like.
if(s.startsWith("-help"))
Now you will want to make it look something like this, you can add more lines or take them away it makes no difference...
if(s.startsWith("-help"))
{
mc.thePlayer.addChatMessage("\2474(|-----\2476Help Commands\2474-----|)");
mc.thePlayer.addChatMessage("\2474(|\247f-up Go up");
mc.thePlayer.addChatMessage("\2474(|\247f-down Go down");
mc.thePlayer.addChatMessage("\2474(|-----\2476Help Commands\2474-----|)");
}
This basically means that it will display the chat messages client side and not server side so only you will be able to read them.
X-Ray:
In this tutorial I shall show you how to make a quick X-ray hack for your client.
First navigate your way to Block.java and get to this line:
public boolean renderAsNormalBlock()
Here you will need to put this code, note to have your variable set up.
public boolean renderAsNormalBlock()
{
return !Variable.Xray;
}
Once you have done this find this next line.
public float getBlockBrightness(IBlockAccess iblockaccess, int i, int j, int k)
In this you need to add this code:
public float getBlockBrightness(IBlockAccess iblockaccess, int i, int j, int k)
{
if(Variable.Xray)
{
return 1000F;
}else
return iblockaccess.getBrightness(i, j, k, lightValue[blockID]);
}
And do the same for the next...
public int getMixedBrightnessForBlock(IBlockAccess iblockaccess, int i, int j, int k)
{
if(Variable.Xray)
{
return 1000;
}else
return iblockaccess.getLightBrightnessForSkyBlocks(i, j, k, lightValue[blockID]);
}
Dont worry, not long to go and under that you need to put yet more...
In here:
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l)
Put this, note you can add or take away block id's:
if(Variable.Xray)
{
return blockID == 54 || blockID == 14 || blockID == 15 || blockID == 16 || blockID == 21 || blockID == 22 || blockID == 56 || blockID == 57 || blockID == 42 || blockID == 41 || blockID == 73 || blockID == 74 || blockID == 52 || blockID == 61 || blockID == 48 || blockID == 49;
}
Almost done, now when you are writing out your GUI etc make sure to use this code:
mc.renderGlobal.loadRenderers();
When ever you toggle it so that it will reload the chunks for the hack to work.
FullBright:
Make your way to the file called EntityRenderer.java and find this line:
float f12 = mc.gameSettings.gammaSetting;
We are going to change this so that when our variable is turned on it forces the gamma setting's all the way to the max.
To do this you will need to use GuiIngame.java or create a custom class.
float f12 = Variables.FullBright? 10000F: mc.gameSettings.gammaSetting;
I shall add more tutorials later as I said earlier, if you would like a specific one just post.
[ Register or Signin to view external links. ]
This is the video section, here we post video's of all sorts of different mods and client's.
Client's:
Mod's:
If there is a youtube video you would like other's to see just post in the thread.
[ Register or Signin to view external links. ]
This is where you can find little things to help you out when creating mods!
Picking your color's:
When choosing what colors look best together for making a mod or client I tend
to use this website as you can easily select which color you would like.
[ Register or Signin to view external links. ]
Just be sure to use the color like so, for example red would be this:
0xFF0000
As apposed to this:
#FF0000
Thank you for reading this tutorial!
[ Register or Signin to view external links. ]
TimeLapse wrote 100% sticky needed, we need this sticky, everyone contact staff and tell them to sticky this ! this is what we hae been waiting for !
DeadLizard wrote I'll defiantly be checking back at this thread every so often, helped greatly. Very organized and neat, Thank you.
MrDroid wrote Obvious hax are obvious.
Nice job afro
[ Register or Signin to view external links. ]
Do you want your video or tutorial to be featured in this thread?
If you do fill out this application!
App:
1: Tut or Video?:
2: What is the video or tutorial about?:
3: Do you think the section will benefit from this?:
4: Is the tutorial or video detailed?
Thank you for reading this thread, if you like this or think it helped feel free to thank the topic or rep or even vouch.
-Afro-
Last edited by -Afro- ; edited 8 times in total
The following 4 users thanked -Afro- for this useful post:
#2. Posted:
Status: Offline
Joined: Mar 04, 201014Year Member
Posts: 2,891
Reputation Power: 150
Glad to see you helping out! I can vouch for ya ;)
- 0useful
- 2not useful
#3. Posted:
Status: Offline
Joined: Feb 07, 201212Year Member
Posts: 152
Reputation Power: 6
Vouch, nice topic -Afro- keep it up!
- 2useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Jan 22, 201113Year Member
Posts: 1,864
Reputation Power: 91
Status: Offline
Joined: Jan 22, 201113Year Member
Posts: 1,864
Reputation Power: 91
Extremely neat, organized, and overall top dog quality! Nice afro, I use this tutorial myself.
- 2useful
- 0not useful
#5. Posted:
Status: Offline
Joined: Feb 21, 201113Year Member
Posts: 636
Reputation Power: 38
Nice Afro, really helped me out, ill keep checking back.
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Sep 11, 201113Year Member
Posts: 705
Reputation Power: 2813
Status: Offline
Joined: Sep 11, 201113Year Member
Posts: 705
Reputation Power: 2813
I'll defiantly be checking back at this thread every so often, helped greatly. Very organized and neat, Thank you.
- 0useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Jan 14, 201113Year Member
Posts: 2,919
Reputation Power: 165
Status: Offline
Joined: Jan 14, 201113Year Member
Posts: 2,919
Reputation Power: 165
Obvious hax are obvious.
Nice job afro
Nice job afro
- 0useful
- 0not useful
#8. Posted:
Status: Offline
Joined: Feb 03, 201212Year Member
Posts: 110
Reputation Power: 10
Status: Offline
Joined: Feb 03, 201212Year Member
Posts: 110
Reputation Power: 10
100% sticky needed, we need this sticky, everyone contact staff and tell them to sticky this ! this is what we hae been waiting for !
- 2useful
- 2not useful
#9. Posted:
Status: Offline
Joined: Nov 14, 201113Year Member
Posts: 515
Reputation Power: 20
Vouch for Afro.Great Post!Helped Me alot
- 0useful
- 0not useful
#10. Posted:
Status: Offline
Joined: May 01, 201113Year Member
Posts: 400
Reputation Power: 17
Status: Offline
Joined: May 01, 201113Year Member
Posts: 400
Reputation Power: 17
Great Post Afro, My Name Is Jake. I approve this post ^^
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.