• 0

    posted a message on Pigman Mod [1.2.5] BoBoSeph
    wrong section, try minecraft mods
    Posted in: Modification Development
  • 0

    posted a message on [1.2.5]House Builder Block[V1.1] Now SMP!
    Quote from Veteran__Kyle

    What do i do is ir planks on the outside and dirt???

    no, directly under that i said the dirt represented a crafting table
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.2.5]House Builder Block[V1.1] Now SMP!
    Quote from jDarK_Shadow

    i think this is just awesome!!
    rly wht a cool idea!!
    but when i try to install it m game doesn't even opens. it gives me a message for a few seconds and then it closes up.
    i tryed to install one by one file to see which file is crushing m game and i found it! " mod_HouseBuilder.class " this is the file!
    wht should i do?? i have installed the modloader + the modloaderMP

    if you blackscreen, delete meta-inf
    otherwise send me the error report
    can be found in modloader.txt in your .minecraft folder

    Quote from Veteran__Kyle

    hey umm i havnt tryed the mod yet how do i get the build block? what do i put in the crafting table? IM CONFUSED

    read the post >.<
    Posted in: Minecraft Mods
  • 0

    posted a message on How to Make A New Health Bar
    I know that if you use forge you can avoid editing the base classes and use some forge call to make your gui come up on the screen
    Posted in: Modification Development
  • 0

    posted a message on Tic Tac Toe Game (Impossible to beat!)
    another update, now should be completely impossible to beat! someone please try :P
    Posted in: Hardware & Software Support
  • 0

    posted a message on Tic Tac Toe Game (Impossible to beat!)
    and i found a way to beat it..... I'm not sure if I can avoid this way without opening up others...
    Posted in: Hardware & Software Support
  • 0

    posted a message on Tic Tac Toe Game (Impossible to beat!)
    Quote from xMrMurder




    What?

    I know, Ive fixed it :P
    Quote from awesomeface811

    the reason the combination works is because you make it so you can win with either putting a cross in point A or B and the AI only puts a circle at A or B so if the AI puts a circle in A then i put a cross in B so it may be hard to fix

    I think I've fixed it, I'll post when I have the .exe and .jar links doneThe links should download the fixed ones now
    Posted in: Hardware & Software Support
  • 0

    posted a message on Tic Tac Toe Game (Impossible to beat!)
    Quote from awesomeface811

    i beat it, still says tie

    Quote from GodEmporerMoe

    I beat it but it said tie.


    ah thanks, I'm gonna try to stop that combination from working now :P
    and I'm gonna fix the tie thing too
    Posted in: Hardware & Software Support
  • 0

    posted a message on Tic Tac Toe Game (Impossible to beat!)
    Quote from hiloser12221

    No offense, but if you're planning on going into this programming field for a career, having a "lazy" mindset isn't going to land you any jobs.

    I'm aware :P
    the difference is I don't get paid for what I do on my own, if it was a job and I was getting paid for it I'd put more effort into it
    Posted in: Hardware & Software Support
  • 0

    posted a message on Tic Tac Toe Game (Impossible to beat!)
    Quote from Mishukax

    I beated the AI and it said TIE :P
    Also there should be a restart button if you can!

    beating the ai means winning, not not losing
    if you actually did, send me a screenshot
    I could add a restart button but I'm lazy and it's not too hard to press escape
    Posted in: Hardware & Software Support
  • 0

    posted a message on Tic Tac Toe Game (Impossible to beat!)
    Quote from hiloser12221

    IDK if this is Pastebins fault, but your conventions look a bit off.

    that'd be pastebin, eclipse scrolls to the side while pastebin doesnt, I think that's what you meant?
    Posted in: Hardware & Software Support
  • 5

    posted a message on Tic Tac Toe Game (Impossible to beat!)
    It's not a great feat, but I made a tic tac toe game with an ai that is impossible to beat, well I think it is, I can't beat it.
    (Older versions have been beat, no solutions for this version have been discovered yet!)
    It's programmed in java

    If anyone wants to try it out you can download it -
    .exe - (only works on windows) - TicTacToe.exe
    .jar - (should work on other systems besides windows) - TicTacToe.jar

    To restart the game once you're playing it press escape

    If you find any bugs let me know
    also if you beat it let me know and send me a screenshot plz :P

    and for you no pics no clicks ppl -


    if anyone wants to see the code for the ai, I put it on pastebin
    - http://pastebin.com/kD8Q3KYA

    and yes, I have made it play against itself and auto restart unless one of the ais had won, neither did, and they probably played at least 10,000 times
    EDIT: I just did that with a counter, and now I'm gonna say at least 10 million times (10,000,000)
    Posted in: Hardware & Software Support
  • 3

    posted a message on Checking the Biome of a Player
    Quote from Shadowclaimer


       public int catchFish()
    	{
    		
    		byte byte0 = 0;
    		if (bobber != null)
    		{
    			double d = angler.posX - posX;
    			double d2 = angler.posY - posY;
    			double d4 = angler.posZ - posZ;
    			double d6 = MathHelper.sqrt_double(d * d + d2 * d2 + d4 * d4);
    			double d8 = 0.10000000000000001D;
    			bobber.motionX += d * d8;
    			bobber.motionY += d2 * d8 + (double)MathHelper.sqrt_double(d6) * 0.080000000000000002D;
    			bobber.motionZ += d4 * d8;
    			byte0 = 3;
    		}
    		else if (ticksCatchable >= 1)
    		{
    			//BiomeGenBase biome = angler.;
    			//if(biome instanceof BiomeGenDesert)
    
    			Roll = rand.nextInt(1000) + 1;	
    
    			if (Roll >= 1 && Roll <= 100) {
    				FishLoot = mod_MetallurgyFishing.FishBluegill;
    			} else if (Roll >= 101 && Roll <= 200) {
    				FishLoot = mod_MetallurgyFishing.FishBass;
    			} else if (Roll >= 201 && Roll <= 280) {
    				FishLoot = mod_MetallurgyFishing.FishPerch;
    			} else if (Roll >= 281 && Roll <= 360) {
    				FishLoot = mod_MetallurgyFishing.FishTrout;
    			} else if (Roll >= 361 && Roll <= 420) {
    				FishLoot = mod_MetallurgyFishing.FishCatfish;
    			} else if (Roll >= 421 && Roll <= 470) {
    				FishLoot = mod_MetallurgyFishing.FishCarp;
    			} else if (Roll >= 471 && Roll <= 520) {
    				FishLoot = mod_MetallurgyFishing.FishSalmon;
    			} else if (Roll >= 521 && Roll <= 570) {
    				FishLoot = mod_MetallurgyFishing.FishTuna;
    			} else if (Roll >= 571 && Roll <= 600) {
    				FishLoot = mod_MetallurgyFishing.FishRedGrouper;
    			} else if (Roll >= 601 && Roll <= 630) {
    				FishLoot = mod_MetallurgyFishing.FishSwordfish;
    			} else if (Roll >= 631 && Roll <= 650) {
    				FishLoot = mod_MetallurgyFishing.FishShark;
    			} else if (Roll >= 651 && Roll <= 660) {
    				FishLoot = mod_MetallurgyFishing.FishWhale;
    			} else if (Roll >= 661 && Roll <= 760) {
    				FishLoot = mod_MetallurgyFishing.Seaweed;
    			} else if (Roll >= 761 && Roll <= 800) {
    				FishLoot = Item.stick;
    			} else if (Roll >= 801 && Roll <= 840) {
    				FishLoot = mod_MetallurgyFishing.Driftwood;
    			} else if (Roll >= 841 && Roll <= 880) {
    				FishLoot = Item.bootsLeather;
    			} else if (Roll >= 881 && Roll <= 920) {
    				FishLoot = mod_MetallurgyFishing.TinCan;
    			} else if (Roll >= 921 && Roll <= 960) {
    				FishLoot = Item.bone;
    			} else if (Roll >= 961 && Roll <= 999) {
    				FishLoot = mod_MetallurgyFishing.MessageInABottle;
    			} else if (Roll >= 1000) {
    				FishLoot = mod_MetallurgyFishing.NeptuniumBar;
    			} else {
    				FishLoot = Item.appleRed;
    			}
    			
    			EntityItem entityitem = new EntityItem(worldObj, posX, posY, posZ, new ItemStack(FishLoot));
    			
    			double d1 = angler.posX - posX;
    			double d3 = angler.posY - posY;
    			double d5 = angler.posZ - posZ;
    			double d7 = MathHelper.sqrt_double(d1 * d1 + d3 * d3 + d5 * d5);
    			double d9 = 0.10000000000000001D;
    			entityitem.motionX = d1 * d9;
    			entityitem.motionY = d3 * d9 + (double)MathHelper.sqrt_double(d7) * 0.080000000000000002D;
    			entityitem.motionZ = d5 * d9;
    			worldObj.spawnEntityInWorld(entityitem);
    			angler.addStat(StatList.fishCaughtStat, 1);
    			byte0 = 1;
    		}
    		if (inGround)
    		{
    			byte0 = 2;
    		}
    		setDead();
    		angler.fishEntity = null;
    		return byte0;
    	}
    }


    Trying to figure out how to set this up properly. Basically I want to have an If that checks the Angler's current biome location. The "easiest" way I can think of is to reference the chunk the player is in and compare it to the biome list, but I can't see to get it working (you can ignore the two commented lines as you see fit)


    theres a much easier way
    try
    BiomeGenBase currentBiome = worldObj.getBiomeGenForCoords(angler.posX, angler.posZ);
    //doesnt need angler.posY because the biomes dont change over y, just x and z


    if this helps dont forgot to +1 :)
    Posted in: Modification Development
  • 0

    posted a message on [Game]Redstone dice
    Quote from discoking99

    Oh... did you make the ready to roll button, etc. last? Or was it just easy to implement?
    was originally redstone torches and I changed it, so easy to implement
    Posted in: Redstone Creations
  • 0

    posted a message on [Game]Redstone dice
    Quote from discoking99

    Get a better mic please....

    OT: A cool little game, maybe use redstone lamps for the numbers as it's alot more noticable. To get a lamp to only light one block, you have to do Lamp I Block I Repeater

    I originally made this before the redstone lamps were added
    Posted in: Redstone Creations
  • To post a comment, please .