• 0

    posted a message on Are you a COD addict??
    For me:

    Minecraft > COD > Battlefield 3

    I usually play a lot of cod when the next one comes out (on november 1st i'm doing a cod marathon) But i do like battlefield 3 for its strategic feature such as the flash light. i think that's a great addition but i just can't stand the HUGE map and the slow paced gameplay.
    Posted in: Discussion
  • 0

    posted a message on Minecraft Addiction
    Where the "Making mods" Option? :rolleyes:
    Posted in: Discussion
  • 0

    posted a message on New computer!
    Pretty good. My rig has 8 GB Ram and 1 terabyte of space though. :iapprove:
    Posted in: Computer Science and Technology
  • 0

    posted a message on Halloween Update, Whats it gonna be?
    I swear notch probably said he was doing a code freeze to throw us off and he's actually working on a sick Halloween feature
    Posted in: Discussion
  • 0

    posted a message on [Creating Mods] Random Generator for your method
    Quote from Goguy77

    how would you make it so when you break the block it has a certain chance to drop an item?


    I just shown you in this tutorial. :Skeleton: HAZ COMON SENSE? U HAZ?

    Edit:

        public int idDropped(int i, Random random)
        {
        	int r = generator.nextInt(100);
        	if (r<=50) {
            return something;
        	}
             return something;
        }
    Posted in: Tutorials
  • 0

    posted a message on [1.8.1]Diamond Ring Mod[Get engaged on minecraft!]
    Thats a mod? i bet it took no more than 5 minute to make. Even the sprite is rushed and i bet its only for single player. Now to get someone to be lifeless enough to marry a pig
    Posted in: Minecraft Mods
  • 0

    posted a message on [Creating Mods] Random Generator for your method
    Quote from xepps

    Completely agree. And then they whine when they get simple errors - even syntax errors! I mean, come on! It tells you what the error is if you just read!

    I would put it down to laziness though. People want to mod, and mod now, without putting in the effort. And programming takes effort! Been studying java for over a year now as part o my university course, but also done a fair bit with c (and even vba in high school (ages 11 to 16 <= british).). Even now I don't know it all, no where near, but if you cant do the basics at a hundred miles an hour, how are you supposed to do the harder stuff!

    Also going to add to my list of things you should be able to do before you mod: generic classes (and normal classes too lol), the math class, event handling and casting (which is a piece of **** if you know the types)!


    i started getting interested in java when i was like 8 i was making maplestory private server but i never really got serious in java until now. my first language is french too (from quebec) now i'm 14 and i get the best grade in english at school. Programming language has alway intrigued me and i think their awesome
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Random Generator for your method
    Quote from xepps

    And for heavens sake - please practice on simple java programs first. Don't even attempt it unless you know about program flow (if, while, do-while, for, foreach etc), recursion, exception statements etc etc. Oh and also how to read error messages.


    Sadly, alot of n00bs think modding is just copy pasting the code from mr tutorial and they don't even know what it mean except for the part mr tutorial explained. They don't even have the basic of java such as knowing your integer like boolean, byte, short, int, long etc.

    The result: Mod with Dirt, slime and obsidian tool and 20 new ore where the hardest work was copy pasting everything. This sadden me
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Random Generator for your method
    edit: fail i tried to edit my post but i replied instead -.-
    Posted in: Tutorials
  • 0

    posted a message on [Creating Mods] Random Generator for your method
    Many noobs in java try to code minecraft mods but they don't even have a single idea on how java work and what are its utility such as random. From what i've noticed, Random is rarely used yet can make a mod really interesting depending on how you're gonna use it.

    In this example, i'm gonna add a 10% chance of something happening when i walk on a certain block.

    So lets get right into it.

    First you wanna chuck this at the top of your block code or wherever you're using this
    (Tips: You place import under package)

    import java.util.*;


    This will automatically import all java utility INCLUDING Random.

    next i'm just gonna add the method that will detect when an entity walk on this block

    	public void onEntityWalking(World var1, int var2, int var3, int var4, Entity var5) {
    }


    Now, for the random.

    		Random generator = new Random();
    		int r = generator.nextInt(100);


    inside of my onEntityWalking. This will generate a random number between 0 and 100 every time an entity walk on this block

    under this random generator, i'll add this

    		if (r<=10) {
    	   myBadassMethodAndStuff();
    	  }


    let me explain, if (r<=10) { will check if the generated value is 10 or lower than 10 and if it is, myBadassMethodAndStuff() method will run. In this case, the chance of it running is 10%. Really simple system. you might wanna generate between 0 and 1000 for more preciseness.



    Hopefully this has been helpful for new modders. I'd do more original tutorial like this but i'm busy on my very own mod at the moment.

    you can check it out by clicking the banner in my signature.



    If you are either too stupid to understand this or simply started coding java yesterday, this is the final method:

    public void onEntityWalking(World var1, int var2, int var3, int var4, Entity var5) {
                    Random generator = new Random();
    		int r = generator.nextInt(100);
    
           if (r<=10) {
    	   myBadassMethodAndStuff();
    	  }
    }


    next tutorial if i have time will be basic loop (For and While)
    if you have any question about Random, just leave a post below and i'll do my best to answer you.
    Posted in: Tutorials
  • 0

    posted a message on Looking for artist to help with the purgatory mod
    well then pm me and show me some of your past work
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on [1.8.1][API] PokeAPI [V1.1]
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.8.1][API] PokeAPI [V1.1]
    i'll make the banner.
    they usually look like this:

    Posted in: Minecraft Mods
  • 0

    posted a message on Looking for artist to help with the purgatory mod
    I already had someone for texture and model but it seems that they died on me :Skeleton:

    .:.Official thread for the mod here.:.


    I will also need someone for modelling

    Open Post:

    Block Texturer: (none)
    Pixel Artist*: (none)
    Modeller: (none)

    *For item!

    If you want to apply for any of those, please let me know by replying to this thread and show at least TWO(2) examples of your past/old work

    Use this banner i made if you want to support the mod:

    Banner:


    [url=http://www.minecraftforum.net/topic/699157-the-purgatory/][img]http://i.imgur.com/KO2hM.png[/img][/url]
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on F3 on minecraft?
    Hum.. What? :Skeleton:
    Posted in: Tutorials
  • To post a comment, please or register a new account.