• 0

    posted a message on errors?
    Quote from JohnathonNow

    ryakra seemed to have trouble with knowing when to place semicolons, and seeing as Priceofmar5's post contained no semicolons, I did not see how that would help. We clearly have different opinions about how to learn a programming language, so why don't we just agree to disagree?

    Let me make a real life analogy.
    Lets say I have no idea how to drive. I have never seen a car before, and I have no idea what anything does inside of a car. If you just put me in the car and say go forward, I wouldn't know what to do. If you put me in the car and say go forward, and then explain where and what the gas pedal does, then I have learned this. In this case, the car is the code. You are putting functional code. He has no experience in java programming, and has no idea what anything does. But if you say "This part is wrong: *insert code here* to fix it you do *insert fix here*, here's why: *insert reason here*" Then he can learn what he is doing and learn to improve on his mistakes.
    Posted in: Modification Development
  • 1

    posted a message on errors?
    Quote from JohnathonNow

    Some times you need to see real code to know what your doing wrong.

    When I was younger, I did not understand inheritance. I knew WHAT it meant, but whenever I tried extending classes, it wouldn't work. So I found an example of code using inheritance, and found that I was just messing up the constructor. From then on, I knew what to do.

    Here's the thing. You knew what it was, then got example code. He doesn't know what he is doing and got code. NOTHING was explained in the code, so he cannot learn. I started making mods in the same way. Didn't know what I was doing. Then I learned some java by watching online tutorials and I finally got what I was doing. The code finally made sense after I learned java.
    Posted in: Modification Development
  • 0

    posted a message on Another "What's wrong with this pic"
    Do we have an ETA on the next picture?
    Posted in: Survival Mode
  • 0

    posted a message on Another "What's wrong with this pic"
    In the newest image, the lava doesn't have particles. (sorry if this has been mentioned)

    EDIT: It also looks like the skeletons chest is bigger than it should be comparing it with one of the previous images
    Posted in: Survival Mode
  • 0

    posted a message on Getting a right click or Forge onItemRightClick Hook?
    Quote from Bryguy

    The downside to that would be that there isn't a way to call it every possible moment. I attempted something similar but unless the mouse was either down or was just clicked about the time of the tick it was called in it didn't work.


    Use modloaders OnTickInGame method. make sure you have the code in the load method to set the hook.
    ModLoader.setInGameHook(bla bla bla);
    Posted in: Modification Development
  • 0

    posted a message on Direction player is facing?
    If you look at the debug screen in minecraft by pressing F3, there is an int labeled with "f" and it has a value between 0 and 3 depending on what way the player is facing. Use that.
    Posted in: Modification Development
  • 0

    posted a message on Item Help
    Quote from ModsAreFun

    I know, but the reason I made this post is because I don't know how to do that...
    You did it in the next line down...
    Posted in: Modification Development
  • 0

    posted a message on Item Help
    When creating the object of entityLightningBolt, You are setting its position to the items iconIndex. They should be used to set its position.
    Posted in: Modification Development
  • 0

    posted a message on how can i do this fast please
    Take a look at the wolf code for the first 3.
    Posted in: Modification Development
  • 0

    posted a message on Entity Error
    Instead of "EntityFreak" try this.becomeAngryAt or just becomeAngryAt
    Posted in: Modification Development
  • 0

    posted a message on Making fire resistant armor?
    Enchantment.java has all the enchants in it.
    Posted in: Modification Development
  • 0

    posted a message on MCP Recompile error
    Quote from UselessFlaw

    That would have been some nice info you know, MCP was ment to be used for modloader

    MCP was meant to de-compile the game. ModLoader was meant to be used for MCP.
    Posted in: Modification Development
  • 0

    posted a message on Null error Help Please!
    Quote from UselessFlaw

    ok how do I keep that insurance in case f1 is larger than maxnum, because the number is defined by a random object

    why is f1 never larger?

    nextFloat generates a number between 0.1 and 1.0
    Posted in: Modification Development
  • 0

    posted a message on Null error Help Please!
    f1 is never larger than maxnum. so the code is never used.
    Posted in: Modification Development
  • 0

    posted a message on Null error Help Please!
    That's because when a player is not holding anything, the value is null.
    Pretty sure this should work, but I'm not entirely sure.


    if ((mc.thePlayer.getItemInUse() != null) && mc.thePlayer.getItemInUse().itemID == (BPick.shiftedIndex | BSword.shiftedIndex | BAxe.shiftedIndex | BHoe.shiftedIndex | BSpade.shiftedIndex))
    Posted in: Modification Development
  • To post a comment, please .