• 4

    posted a message on Why do YOU hate MCBans?
    I hate Mcbans because im global banned for "griefing" somebodys dirt. Now every mc ban server i go on bans me for being a griefer. I tried to apeal and the admin of the server posted fake evedence.
    Posted in: Server Support and Administration
  • 1

    posted a message on Fly Mod Help
    this is really shity, your just trying to say if your not on the ground to keep jumping anyways. Also if you do this, in single player, things that try to jump will start flying too lmao. I made a fly mod tutorial already so you can use that if you want.

    If you still want to do it like that, your last "}" is in the wrong spot.

    Quote from killernerd

    If you don't want to do that then i suggest you at least take a look at how movement and gravity are handled and make your own conclusions from that.


    EntityPlayerSP.java
    float f = 0.1F;            
    if(byte0 == 0)            
    {                
        motionX = -f;            
    }            
    if(byte0 == 1)            
    {                
        motionX = f;            
    }            
    if(byte0 == 4)            
    {                
        motionZ = -f;            
    }            
    if(byte0 == 5)            
    {                
        motionZ = f;            
    }        
    }
    Posted in: Modification Development
  • 1

    posted a message on [Moding] Simple fly mod tutorial [1.1]

    First

    NICE :tongue.gif:
    but i have zombes mod pack



    I can't deny, Zombe's is much better than mine but it's always good to learn how to do things yourself sometimes =D
    thanks for the positive feedback
    Posted in: Tutorials
  • 6

    posted a message on [Moding] Simple fly mod tutorial [1.1]
    To start this off i will be showing you how to set up a key toggle, fly mod, crash fixes, and an ingame GUI. Please don't copy and paste any of my code, it will benifit you if you write it yourself and see what i'm actualy doing.


    Part 1 : Toggle set up

    We want our fly to stay on, so we need to make a toggle. To do this, we will make a new method in GuiIngame.

    To start off, import
    import org.lwjgl.input.Keyboard;


    now under this
    public class GuiIngame extends Gui
    {

    there is a list. On top of that list add a new boolean like this
    static boolean checkKey[];

    and under this
    public GuiIngame(Minecraft minecraft)
        {

    there's another list, add this to the top of that list
    key = new boolean [256];


    Now, we make the method checkKey. Go below the list were you just added the boolean and write this out
    public boolean checkKey(int i)
        {
        	if(mc.currentScreen != null)
        	{
        		return false;
        	}
        	if(Keyboard.isKeyDown(i) != checkKey [i])
        	{
        		return checkKey[i] = !checkKey[i];
        	}else
        		return false;
        	}


    If done correctly, you will be able to make a key toggle.
    Part 2 : Key Toggle


    Make a new class, call it something meaningfull for a list of mods. I will simply use Mods for this tutorial. When you make your new class, make three new booleans named fly, speed, and nofall. Set the booleans to false. This will make it so your mod is off when you start up your game.

    package net.minecraft.src;
    
    public class Mods {
    	static boolean fly = false;
            static boolean speed = false;
            static boolean nofall = false;
            static boolean flyfallfix = false;
    }



    Now, go into GuiIngame.java run a search for this
               
         long l5 = l2 - l4;   

    under that long list make an else statement at the bottom of that list and start adding the toggle. Were also going to use an array list to make it look pretty =D.
         else{
            	fontrenderer.drawStringWithShadow("Minecraft 1.0.0", 2, 2, 0xffffff);
            	ArrayList Modlist = new ArrayList();
            	
            if(checkKey(Keyboard.KEY_J))
            {
            Mods.speedy = !Mods.speedy; //turns on speedy
            }
            if(Mods.speedy) // if speedy is on then it will do this
            {
            Modlist.add("\2479Speedy"); //adds speedy to your array list
            Timer.timerSpeed = 2.0F; // this makes your speed 2x as fast Change modifier                                     of "timerSpeed" to static to fix the error
                   
            }else
            {
            if(Modlist.contains("\2479Speedy"))
            Modlist.remove("\2479Speedy"); //removes speedy from the list               
            Timer.timerSpeed = 1.0F;  // makes your speed normal again	
            }
            if(checkKey(Keyboard.KEY_F))
            {
            Mods.fly = !Mods.fly;
    
            }        	
                if(Mods.fly)
            	{
                        Modlist.add("\2471Flying")
                        Timer.timerSpeed = 2.0F;
            	}else{
                          if(Modlist.contains("\2471Flying"))
            		Modlist.remove("\2471Flying");                
                         }
    
            	if(Mods.fly && Mods.speedy) // this alows your speed mod to work with your fly so                                              you can fly slow and fast
            	{                                             		
                        Timer.timerSpeed = 4.0F;
            	}


    Now tell the array list how you want it to sort out your text

    int list = 14;
                for(int guiInt = 0; guiInt < Modlist.size(); guiInt++)
                {
                fontrenderer.drawStringWithShadow("" + Modlist.get(guiInt), 2, list, 0xFBB917);
                list += 12; //sorts it down the left half of the screen by 12 spaces
                }
            }

    you now should have something up and running, test it out make sure it works =D. If you want fly to show up in your list before speedy, add fly before you add speedy.

    Part 3 : no fall damage (Important!)

    for this part we will head over to EntityClientPlayerMP.java, under this
     public void onUpdate2()
        {
            if(inventoryUpdateTickCounter++ == 20)
            {
                sendInventoryChanged();
                inventoryUpdateTickCounter = 0;
            }

    you put this.
    if(Mods.nofall)
            {
            	sendQueue.addToSendQueue(new Packet11PlayerPosition(motionX, -999D, -999D, motionZ, !onGround));
            	    
            }


    This tells servers that you are not on the ground (the ! means not) therefor you will not take fall damage. But you need to turn it off for single player aswell so now we head over to entityplayerSP and find this
     super.onLivingUpdate();
            if(onGround && capabilities.isFlying)
            {
                capabilities.isFlying = false;
            }
        }

    now change it to
     super.onLivingUpdate();
            if(onGround)
            {
                Mods.nofall = false;
                Mods.mpflyfallfix = false;
            }
            if(onGround)
            {            
                 capabilities.isFlying = false;
            }
        }

    ok now when your on the ground, fly fall fix will turn off. So now we have to stop you from taking damage. Head over to entityplayer and find this
    protected void fall(float f)

    now this is were notch made the exception for his fly, so we will just use this for ours.
    change it to this.
        {
            if(capabilities.allowFlying || Mods.fly || Mods.flyfallfix)
            {
                return;
            }
            if(f >= 2.0F)
            {
                addStat(StatList.distanceFallenStat, (int)Math.round((double)f * 100D));
            }
            super.fall(f);
        }    

    now all thats left to do is make the fly =D
    part 4 : fly =D

    for this part we head over to EntityPlayerSP.java, go down to the bottom, you will find a list that looks like this.
                float f = 0.1F;
                if(byte0 == 0)
                {
                    motionX = -f;
                }
                if(byte0 == 1)
                {
                    motionX = f;
                }
                if(byte0 == 4)
                {
                    motionZ = -f;
                }
                if(byte0 == 5)
                {
                    motionZ = f;
                }
            }


    Under here you basicly need to make two seperate keys that modify the motionY, thus alowing you to move up and down freely.
        	if(Mods.fly)
              	motionY = 0.0D; //this stops you from falling when your flying
        		Mods.nofall = true; //this fixes fall damage in smp               
                    Mods.flyfallfix = true; // this fixes fly fall in single player
            	if(Keyboard.isKeyDown(18) && mc.inGameHasFocus && Mods.fly == true) // key(18) is (E) so when E is pressed you go up
            	{
            		motionY += 0.2D;
            	}else
            		if(Keyboard.isKeyDown(16) && mc.inGameHasFocus && Mods.fly == true) //key(16) is (Q) when Q is pressed, you go down
            		{
            			motionY -= 0.2D;
        }


    you should get an error, chose to import org.lwjgl.input.Keyboard and it should be fixed
    part 5 : debugging

    This part is optional and you might not even need to do this, sometimes your client crashes when you hit cob webs or beds. First hit a bed, if you crash, Eclipse should show a list of errors, go to the first one and make a try statement for example

          
           example Error;
          
    // you would rewrite it as this
    
    try{
    example Error;
       }catch(Exception a) //It doesn't have to be "a", it could be anything else
       {
       }


    Now you load up your client and hit the bed again, if it crashes repeat. Now if your crashing with cob webs, you do the exact same process untill you can break them without crashing
    Part 6: Speed mod without Timerspeed

    What you want to do is go to EntityPlayer.java, find the variables speedOnGround and speedInAir. Change them to whatever. Hint Onupdate. I'm not providing code for this as it is so simple.
    This concludes my tutorial, if you have any questions, please don't hesatate to ask. If i have an answer, i will reply.
    :smile.gif:

    ~force_fail~
    Posted in: Tutorials
  • 3

    posted a message on Team Corrosion Modding Team (LOOKING FOR NEW MEMBERS!)
    Quote from inlanoche

    Don't be so quick to judge. I started programming when I was 10.


    i don`t judge skills based on age, infact one of the best programmers i know was able to make really cool games when he was 12. I think this because 1, most of the time, people will pick their age as the lowest. 2, about every second a post of a programming team is made by people looking to learn but they are to proud to admit they needed help and 3, if he was infact a skilled programmer, he wouldn`t post this

    Quote from MineCraftTCG


    -MineCraftTCG-Head of Team-No Modding Skills (Learning)-Idea Developer

    Posted in: Mods Discussion
  • 1

    posted a message on Team Corrosion Modding Team (LOOKING FOR NEW MEMBERS!)
    i know your 13, you can`t program, and you think you can fool others into teaching you.





    Posted in: Mods Discussion
  • 1

    posted a message on Mod installer
    Quote from ndf63099

    Alright, ONE. YOU CANT JUST ASSUME FROM ONE QUOTE THAT SOMEONE SAYS, THAT THEY'RE STUPID. TWO. I DO KNOW HOW HARD IT IS TO TO CODE SOMETHING AS DIFFICULT AS MINECRAFT. THAT IS WHY IM SUGGESTING IT TO THE PRO'S/ THE PPL WITH THE TIME. THREE. IT'S CALLED A SUGGESTION LIST.

    I'M THE DUMBY?


    yes, you are the dummy.
    Posted in: Requests / Ideas For Mods
  • 1

    posted a message on Bedrock Lighting
    Quote from OrionTL

    as soon as MCP is updated ill do that, how bright do you want the bedrock?

    im not doing much, all it is a line of code :smile.gif:


    mcp is out...
    Posted in: Requests / Ideas For Mods
  • 1

    posted a message on Join My 8 slot Vanilla Server
    bad server all griefed
    Posted in: Starting Up / Looking For Server
  • 2

    posted a message on Hello! Wana-be programmer here!
    the new boston is a good place to start
    Posted in: Mods Discussion
  • To post a comment, please .