int num = new Random().nextInt(4); // Generates a random number between 0 and 4. if (num < 3) { // Do the crafting. }
For 60%, generate a random number between 0 and 4 and check to see if it's less than 3. If it's 0, 1, or 2, that's 3 out of 5 possibilities.
Make sure it's in the right place.
Sup. :cool:
Once I post a video, I can't really change it.
Learning how not to program is good too ;)
Whenever I get tagged in a post, I read through it and like everything mentioning me in a positive way. Narcissism? Maybe Yes.
Here's something I've never told anyone, but I suppose now is a good time to get it out: When I started my channel, I was huge into Minecraft....
I haven't look at my first video in forever, so I wouldn't remember. Back then, I wasn't nearly as experienced as I am now, so I can see why I...
When did I use the Minecraft logger? Also, how is using a logger made for Minecraft a bad practice?
Pick me! [media]
Here's a video explaining exactly how to do this. [media]
Thanks for letting me know.
In light of the recent developments with Bukkit, I made a video thanking the Bukkit team for all of their hard work on Bukkit. Even though they...
Use a do...while loop. Location loc; do { loc = new Location(...); } while (!loc.getBlock().isLiquid());
Right after you instantiate the location, check to see if it's a liquid using location.getBlock().isLiquid().
I'm not mad and I never wanted to insinuate that. I was just letting you know that if you wanted to contribute it, it would be appreciated. I...
This code looks exactly like the Wand enum in MagicBattle.
Feel free to merge this with MagicBattle if you want to contribute the wands you made.
I've only used JSON a few times, and very limited. Once I figure out how the 1.7 protocol works, I'll make a video explaining it.
Separate names with a comma.