Results 1 to 13 of 13
  1. #1
    Cal's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    MPGH faggots.
    Posts
    5,553
    Reputation
    394
    Thanks
    825

    [Tutorial]Become a MC Modder EASY [Part 2]



    If you are reading this i assume you have successfuly followed Become a Minecraft Modder

    Now were going to make a harder mod. not to hard we like to keep it simple at first but still, ok follow the following steps, change whatever you want on the way.

    Infomation
    We will be making your player have godmode!

    Instructions
    Open Notepade++
    Open your MCP (Minecraft COders Pack) Folder
    Open your srs/Source colder and find EntityPlayer
    Youll first see what he starts with, youll see Health, its set at the default 20, change it to something rediculas like 99999 and save it,
    now scroll down to the respawn part, you see it setting your health to 20? change it to 9999 aswell, this will make respawn godemode, so if your on your old save and you want godmode just kill yourself and youll have it .
    So heres what were changing
    Code:
    public EntityPlayer(World world)
        {
            super(world);
            inventory = new InventoryPlayer(this);
            field_9371_f = 0;
            score = 0;
            isSwinging = false;
            swingProgressInt = 0;
            damageRemainder = 0;
            fishEntity = null;
            inventorySlots = new CraftingInventoryPlayerCB(inventory, !world.multiplayerWorld);
            craftingInventory = inventorySlots;
            yOffset = 1.62F;
            ChunkCoordinates chunkcoordinates = world.getSpawnPoint();
            setLocationAndAngles((double)chunkcoordinates.x + 0.5D, chunkcoordinates.y + 1, (double)chunkcoordinates.z + 0.5D, 0.0F, 0.0F);
            health = 20;
            field_9351_C = "humanoid";
            field_9353_B = 180F;
            fireResistance = 20;
            texture = "/mob/char.png";
        }
    To
    Code:
    public EntityPlayer(World world)
        {
            super(world);
            inventory = new InventoryPlayer(this);
            field_9371_f = 0;
            score = 0;
            isSwinging = false;
            swingProgressInt = 0;
            damageRemainder = 0;
            fishEntity = null;
            inventorySlots = new CraftingInventoryPlayerCB(inventory, !world.multiplayerWorld);
            craftingInventory = inventorySlots;
            yOffset = 1.62F;
            ChunkCoordinates chunkcoordinates = world.getSpawnPoint();
            setLocationAndAngles((double)chunkcoordinates.x + 0.5D, chunkcoordinates.y + 1, (double)chunkcoordinates.z + 0.5D, 0.0F, 0.0F);
            health = 9999;
            field_9351_C = "humanoid";
            field_9353_B = 180F;
            fireResistance = 20;
            texture = "/mob/char.png";
        }
    And respawn from:
    Code:
    public void preparePlayerToSpawn()
        {
            yOffset = 1.62F;
            setSize(0.6F, 1.8F);
            super.preparePlayerToSpawn();
            health = 20;
            deathTime = 0;
        }
    To
    Code:
    public void preparePlayerToSpawn()
        {
            yOffset = 1.62F;
            setSize(0.6F, 1.8F);
            super.preparePlayerToSpawn();
            health = 99999;
            deathTime = 0;
        }
    Now Recompile with recompile.bat in your Minecraft Coders Pack folder.
    Now edit the config file in the MCP/Config the .txt document and add what you modified, so we modified entityplayer so add that and save it
    now start the reobfuscate and get the class files in the final_out folder
    Last edited by Cal; 04-19-2011 at 06:38 AM.

  2. The Following 3 Users Say Thank You to Cal For This Useful Post:

    ElitePk (04-19-2011),Jakob (04-19-2011),Son Goku (04-26-2011)

  3. #2
    Jakob's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    4,721
    Reputation
    237
    Thanks
    510
    My Mood
    Psychedelic
    Niice tut man. very helpful. +1 for awesomeness.

  4. #3
    Cal's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    MPGH faggots.
    Posts
    5,553
    Reputation
    394
    Thanks
    825
    Thanks for the positive feedback.

  5. #4
    Jakob's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    4,721
    Reputation
    237
    Thanks
    510
    My Mood
    Psychedelic
    All good. You deserve more credit. Plus, Im already waiting on [Part 3] haha :P

  6. #5
    Cal's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    MPGH faggots.
    Posts
    5,553
    Reputation
    394
    Thanks
    825
    Oh cool.
    Well i guess if someone wants it ill write it.

  7. #6
    ElitePk's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    181
    Reputation
    8
    Thanks
    39
    My Mood
    Amazed
    I was looking for that file name xD
    [IMG]https://i909.photobucke*****m/albums/ac299/Tomstra/mariot.jpg[/IMG]

  8. #7
    Cal's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    MPGH faggots.
    Posts
    5,553
    Reputation
    394
    Thanks
    825
    Greeeeaaat, lol, now everyone is going to release modded EntityPLayer Shit.

  9. #8
    Thunder's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North
    Posts
    13,773
    Reputation
    2920
    Thanks
    3,655
    I've already done it. Great tut tho

    [X]
    Crossfire minion since 06-12-2011
    Minecraft minion since 06-20-2011
    Moderator since 08-17-2011
    Global Moderator since 09-10-2011
    Super User since 08-27-2012
    [X] [X] [X]

  10. #9
    Cal's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    MPGH faggots.
    Posts
    5,553
    Reputation
    394
    Thanks
    825
    So did i? its not abut doing it itts about learing to use Java and modding.
    i made MineTopea with it.

  11. #10
    KingDot's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Goodbye
    Posts
    11,805
    Reputation
    1167
    Thanks
    1,336
    My Mood
    Busy
    Pretty nice tut.
    (┛◉Д◉)┛彡┻━┻
    ლ(ಠ益ಠ)ლ

    Quote Originally Posted by KingDot
    Flame bait and instigate

  12. #11
    Cal's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    MPGH faggots.
    Posts
    5,553
    Reputation
    394
    Thanks
    825
    Thanks, ill be making video tutorials for you all aswell soon to come (In The next week)

  13. #12
    Jakob's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    4,721
    Reputation
    237
    Thanks
    510
    My Mood
    Psychedelic
    Quote Originally Posted by MC Modder View Post
    Thanks, ill be making video tutorials for you all aswell soon to come (In The next week)
    dont use songs though because then apple users cant watch,

  14. #13
    Cal's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    MPGH faggots.
    Posts
    5,553
    Reputation
    394
    Thanks
    825
    Why would i add gay songs .