• 0

    posted a message on Eclipse Crash When opening it
    Hi,

    If you installed the 64-bit Eclipse build you need to make sure to have 64-bit JDK (and likewise for the 32-bit counterparts).
    Posted in: Modification Development
  • 0

    posted a message on Best username!
    I've seen some interesting names in games where you have titles appended at the beginning/end of your displayed name. One of them being She Calls Me the Riftsplitter, where "the Riftsplitter" was a title just added to the end.
    Posted in: General Off Topic
  • 0

    posted a message on Minecon Tickets Announced!
    Quote from Andox

    300 Bucks to go to a con...that's gotta be near a world record, all the cons I've been to have been at most $60/ticket....
    WORTH IT! WOOO!


    These tickets are $150 per person, for both days.

    It is far from a record: the Runefest 2011 (being the only other con I know about) sold VIP tickets in 2011 for £179, which is around $270 according to Google. That was two days aswell.
    Posted in: Minecraft News
  • 2

    posted a message on Need mod or hack where I can "Directly attack"
    These restrictions are handled server-side and its behaviour cannot be modified by the client.
    Posted in: Mods Discussion
  • 0

    posted a message on Please Help - ModPack Mod Conflict?
    Quote from Rongmario

    Which one? Because I had 2 Totally different crash reports.


    The first one where a method could not be found.
    Posted in: Java Edition Support
  • 0

    posted a message on Please Help - ModPack Mod Conflict?
    You probably have two mods that override the same Minecraft class
    Posted in: Java Edition Support
  • 0

    posted a message on Gen
    Quote from darklord987

    it spawns in desert biome so once every 10 desert biomes


    What I mean is, do you want to generate a structure at for example 50% chance when your code is called?

    Quote from caagr98

    I've sometimes found multiple pyramids in the same desert. (No, I don't use large biomes)


    That is the effect of randomness :) You could find none, one or more ^_^
    Posted in: Modification Development
  • 0

    posted a message on Official Chat Thread XVII - Chatters D'Amour Edition
    Quote from CAN_Archer

    Well there's school pizza, that's usually bad.


    Last year we had delicious pizza at school (and as much as we could eat too!)

    I had forgot about that, but I now remember we had alot of fun that day ^_^
    Posted in: General Off Topic
  • 0

    posted a message on How do i enlarge the minecraft sprite page
    Quote from RedFoxy3

    Huh. ModLoader overrides the terrain/items sheets. MinecraftForge allows for NEW sheets. aka, unlimited textures.


    Thank you for the correction :)
    Posted in: Modification Development
  • 0

    posted a message on Gen
    Do you have some numbers in mind for this?

    For instance, say the code you provided is called 50 times, approximately how often would you like a structure to actually be built?

    import java.util.Random;
    
    public class StructureRarity
    {
    
        private static final Random random = new Random();
    
        public static void main(String[] args)
        {
            int count = 0;
            double totalPercentage = 0.0;
    
            for (; count < 15; count++)
            {
                totalPercentage += simulate();
            }
    
            System.out.println();
            System.out.println("Total success percentage: " + (totalPercentage / count) + " %");
        }
    
        private static double simulate()
        {
            int attempts = 0;
            int structures = 0;
    
            random.setSeed(random.nextLong());
    
            for (int i = 0; i < 50; i++)
            {
                if ((random.nextInt(15) == 0) && (random.nextDouble() < 0.25))
                {
                    structures++;
                }
    
                attempts++;
            }
    
            double successRatio = ((double) structures * 100.0) / (double) attempts;
    
            System.out.print("Built a total of " + structures + " in " + attempts
                    + " attempts. ");
            System.out.println("(" + successRatio + " % success)");
    
            return successRatio;
        }
    
    }


    Example run:

    Built a total of 0 in 50 attempts. (0.0 % success)
    Built a total of 0 in 50 attempts. (0.0 % success)
    Built a total of 1 in 50 attempts. (2.0 % success)
    Built a total of 1 in 50 attempts. (2.0 % success)
    Built a total of 1 in 50 attempts. (2.0 % success)
    Built a total of 2 in 50 attempts. (4.0 % success)
    Built a total of 2 in 50 attempts. (4.0 % success)
    Built a total of 0 in 50 attempts. (0.0 % success)
    Built a total of 1 in 50 attempts. (2.0 % success)
    Built a total of 0 in 50 attempts. (0.0 % success)
    Built a total of 1 in 50 attempts. (2.0 % success)
    Built a total of 0 in 50 attempts. (0.0 % success)
    Built a total of 1 in 50 attempts. (2.0 % success)
    Built a total of 2 in 50 attempts. (4.0 % success)
    Built a total of 0 in 50 attempts. (0.0 % success)
    
    Total success percentage: 1.6 %
    Posted in: Modification Development
  • 0

    posted a message on How do i enlarge the minecraft sprite page
    As Minecrafter1912 already posted, there will be seperate files for different items and blocks (plus animation support!) in 1.5.

    Grab the official 13w05a snapshot here: http://assets.minecraft.net/13w05a/minecraft.jar

    I do believe Forge (and Modloader?) can override the items sheet :)
    Posted in: Modification Development
  • 0

    posted a message on Official Chat Thread XVII - Chatters D'Amour Edition
    Quote from Raynbow

    They were still chat threads though d;


    Well, okay. You win this one!

    Posted in: General Off Topic
  • 0

    posted a message on Official Chat Thread XVII - Chatters D'Amour Edition
    Quote from Raynbow

    Noob Nouish, there were 3 or 4 chat threads before the OCT


    Does not count =[
    Posted in: General Off Topic
  • 0

    posted a message on Official Chat Thread XVII - Chatters D'Amour Edition
    Quote from Raynbow

    But it's been 20 or so chat threads and I've never gotten in on one ;~;


    Noob Raynbow, XVII is 17.

    I did absolutely not use the Google Search engine to figure that out. I will not admit that I did.
    Posted in: General Off Topic
  • 0

    posted a message on Possible to override base classes?
    Quote from xtard

    Thanks for explaining everything Nouish. I barely made it out of high school computer science classes and didn't spend any time on Java because my teacher told me it was the worst of both worlds (C + BASIC). I tried coding sometime before 1.2 (Beta) but didn't get too far into it and now I'm trying again. I don't think Java is this hard, just Notch making it complicated and now Jeb going along with it, but I'm trying my hardest to figure it out.

    Semi-unrelated: The infinite loop is kind of amusing, you'd think someone would have caught it before? Then again maybe I should have, but Java is so new to me it's like I've forgotten all my learnin'.


    The Minecraft Coder Pack decompiles, repackage and rename class, method and field names for convenience. You are not seeing the actual sourcecodes as written by Mojang employees. Without the actual source code (with javadocs) it is sometimes hard to read the code, which is why they obfuscated the code anyway. One thing that is known from the sourcecode itself, is that what MCP authors renamed "ItemStack" is originally known as "ItemInstance" (seen in a video interview with Notch).

    recipes.remove(i--); //I'm thinking that **.remove is an array function that deletes the value and moves everything back one spot. i-- tells the function to delete the value in the slot before the current one.


    I'd like to point out that you misunderstand the "i--" statement there. It will return the value of "i", and the decrement the value by one.

    What you describe is the effect of "--i".
    Posted in: Modification Development
  • To post a comment, please or register a new account.