• 0

    posted a message on Smooth door open/close animation
    Yeah, I'd be interested to see how your progress is. Good luck!
    Posted in: Modification Development
  • 0

    posted a message on Gui Button Image
    Lol, okay. If you did, I was going to ask where you started out with it. I'm interested with it, but I don't even know where to begin.
    Posted in: Modification Development
  • 0

    posted a message on Gui Button Image
    That's awesome! :D

    Jep, did you understand GL graphics before doing this?
    Posted in: Modification Development
  • 1

    posted a message on Smooth door open/close animation
    And if your relativley new to Java, honestly, I wouldn't try that first. Go at if you want to, and all power to you because you'll learn alot if you end up making it work. It's just java's animation isn't the easiest thing to learn, especially for someone starting out.

    But seriously, if your up for it do it! :D It would be coooolio to see work.

    Oh, and I'd just look for a class that had Chest in the name, and then look for a onClick() or onLeftClick() method. I haven't actually looked at it so I wouldn't know if there even was anything like that. But that's what I would look for.
    Posted in: Modification Development
  • 1

    posted a message on Gui Button Image
    Ahh, yeah, didn't have the specific methods to edit, sorry. I've never actually dealt with that code so I didn't know them anyway.
    Posted in: Modification Development
  • 2

    posted a message on Gui Button Image
    Create a new class and call it whatever you want. For this example, I'm calling it YourClassName. It would look like this.

    public class YourClassName extends GuiButton {
    //Code goes here
    }


    In the //Code goes here, you could probably copy the GUIButton code and paste it, and edit some of the code to make it blue. Someone correct me if I'm wrong about this.

    So when you make the button for your GUI like this...

    GuiButton button = new GuiBUtton(...)


    you would instead use your above class name, because you created your own button object.

    YourClassName button = new YourClassName(...)


    I'm pretty sure that's what Caagr98 is talking about. I could be wrong though. :P
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED]DO STUFF while key is pressed help
    Yeah, it might be. It was worth a try. Hope you find it though. If you do, you should post it here. :)
    Posted in: Mods Discussion
  • 0

    posted a message on [SOLVED]DO STUFF while key is pressed help
    Lol, I totally forgot about this thread. It's funny that you found it cuz you were just asking about it! :P This methods goes in your mods main method. It basically checks for stuff every tick in game, so its constantly checking itself.

    Of course, this might be outdated since 1.3 came out. I don't do this very much anymore, so I wouldn't know the most recent method.

    I found this video which might help.

    It uses the KeyEvent and KeyListener stuff I was talking about. He actually uses a better method for detecting multiple key presses at once. But you still need to somehow have it check every tick, and I can't help you on that one. Hope this helps. :)
    Posted in: Mods Discussion
  • 0

    posted a message on Shift/Ctrl/Alt-Clicking?
    Look up the Keyboard class in java. It wouldn't be hard coded into minecraft anywhere since thats no how the game is played. I did this once to have a bunch of cool effects. You can get pretty nifty with it.
    Posted in: Modification Development
  • 0

    posted a message on Gui Button Image
    Pretty sure you can make the button whatever color you want... Isn't there a color property for the button?
    Posted in: Modification Development
  • 0

    posted a message on [Need Help] Chance for Item to Cause Damage
    Here, sorry it took so long. Kinda lost this topic. Haha anyway, the code will have to be changed to suit your needs.

    public int effectChance(int par1)
    {
    Random rand = new Random();
    int i = rand.nextInt(par1);
    return i;
    }


    It basically returns a random number between 0 and whatever number you pass in exclusive. so if I passed in 4, it could possibly come out as 0, 1, 2, or 3. 4 as in there are 4 numbers that can be chosen. If you want like a 1/8th chance that the person will be hurt, just call this method everytime they click with the tool in hand and pass in an 8. It would look something like...

    if(effectChance(8) == 0 {
    //Do Whatever
    }


    Hope this helps. :) And again, sorry it took so long.
    Posted in: Modification Development
  • 0

    posted a message on [Need Help] Chance for Item to Cause Damage
    I have the code at home. It's real simple. I'm at work right now but I can post it once I get home.
    Posted in: Modification Development
  • 0

    posted a message on [Need Help] Chance for Item to Cause Damage
    Do you know java or do you just want the code to do this? I have a block of code that might work but it will have to be edited for your purpose. Let me know if you can deal with that.
    Posted in: Modification Development
  • 0

    posted a message on how would one make a block drop a modloader created item?
    Okay, this is the technical answer. You didn't make your item in the Minecraft Item class, therefore it's not there. You created your item in your mod_whatever class, so your item is mod_whatever.yourItem. Just like if you were using a method in your mod_whatever class called getName(). You wouldn't just call getName(), it doesn't know where to start. The method getName is in the mod_whatver class, so you would have to call mod_whatever.getName(). :)
    Posted in: Modification Development
  • 0

    posted a message on Mod testing problems
    Okay, for the mod thing, don't load the actual mod into the minecraft.jar. If your using eclipse, you put images in MCP>eclipse>Client>bin. Then you just hit the run button from within eclipse. If your notusing eclipse, put images in MCP>bin and go back to the main MCP folder and hit startclient.bat. Try that. :)
    Posted in: Modification Development
  • To post a comment, please or register a new account.