• 0

    posted a message on [1.1] SuperFoods V1.4
    Quote from VideoyiMinecraft

    Awesome mod!
    EDIT:
    I have trouble installing the mod - I putted in the SuperFood folder and the class into minecraft.jar (opened by WINRAR) and deleted META.INF, but it won't install it! Help?




    Have you got ModLoader installed? You can get it from here if you dont
    Risugami's Mods

    sorry i forgot to put that in the post, ill do it now :smile.gif:
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.1] SuperFoods V1.4
    I'm not adding them into the post just yet because im going to make new ones. Most of the current ones are terrible.
    Posted in: Minecraft Mods
  • 11

    posted a message on [1.1] SuperFoods V1.4
    DISCONTINUED
    IF YOU REALLY HAVE A GOOD ENOUGH REASON FOR ME TO CONTINUE THIS MOD, SEND ME A PM.

    This was my first mod. SuperFoods adds approximately 30-40 new foods to the game.
    Foods Added:


    Downloads:






    ModLoader Required!

    Mod By: TechGuy543
    Texture Artists: WadupMan, Dr Healsgood, TechGuy543
    Ideas: VideoyiMinecraft, gobber56man


    Recipes:

    Note: Some of the food indicators below are incorrect. The majority should be right though.

    Wheat Bix: Heals 4



    Sausage: Yields 6 sausages Heals 5



    Green Food Dye:



    Green Eggs and Ham: Heals 6



    Green Tea: Heals 2



    Tea: Heals 3



    Scrambled Eggs: Heals 2



    Croissant: Yields 6. Heals 1 and a half



    Chicken & Mushroom Stew: Heals 2 and a half



    Noodles: Yields 3 noodles. Heals 1



    Hotdog: Heals 4



    Burger Bun Tops: Yields 4 buns. Heals 1


    Burger Bun Bottoms: Yields 4 buns. Heals 1


    Slice of Bread: Yields 4 slices. Heals 1



    Cheese: Heals 1 . Returns your bucket.


    Hamburger: Heals 3



    Cheeseburger: Heals 4


    Cheese and Bacon Burger: Heals 6


    Sausage on Bread: Heals 6




    Glass:



    Chocolate Flavouring:



    Chocolate Milk: Heals 4 and a half



    Apple Juice: Heals 5



    Pumpkin Juice: Heals 4 and a half



    Egg Nog: Heals 3 and a half



    Hot Chocolate: Heals 3 and a half . Just put chocolate milk in a furnace


    Poultry Stew. Heals 6



    Fish Soup: Heals 4


    Watermelon Juice: Heals one and a half


    Plate:


    Raw Egg: Heal 2


    Cooked Egg: Heals 4



    Apple Tree Sapling:



    Cocoa Seeds(only used in sapling recipe):




    Cocoa Tree Sapling:



    Update Check Block:



    Pictures & Info:

    The Update Check Block.


    This epic block will open up the GUI below when right clicked.


    When you click on the 'Check For Updates' button, it connects to the SuperFoods website and checks the version. If there is a new version of the mod available, it will bring up a message in chat telling you that there is one. It will do the same thing if your version of SuperFoods is up to date. When you click the "Go to Download Page" button, Minecraft will minimize and the download page will open in your default browser. There is a link on that page that will bring you back here. While the GUI is open, the game will pause.

    Cocoa & Apple Saplings/Trees. Bonemeal will not effect a cocoa sapling. WARNING: There is a bug with using bonemeal on an apple tree sapling. It will crash your game if you attempt this. Read the disclaimer below.











    Videos:



    By Lolerking.


    ChangeLog:

    V1
    * Initial Release

    V1.2
    + More Foods

    V1.3
    +More Foods

    V1.3.1
    *Improved Textures
    -Removed Ice Creams

    V1.4
    +Chicken Burger
    +Frankfurt
    +Pigs in a Blanket
    +Raw Bacon
    +Cooked Bacon
    +Toast
    +Breadcrumbs
    +Chicken Nuggets
    +Fish Fillet Burger
    +Flour
    +Dough
    +Cocoa Seeds(for use in coca sapling recipe)
    +Cocoa Tree
    +Apple Tree
    +Update Block
    *NEW TEXTURES!
    *Updated to 1.1


    Installation Guide:
    1. Install ModLoader into the minecraft.jar with an archiving program like WinRAR.
    2. Put the superfoods.zip into the mods folder in .minecraft.

    Banners:











    [center] [url="http://www.minecraftforum.net/topic/734316-"] [img] http://i.imgur.com/wi3O2.png [/img] [/url] [/center] 



    Disclaimer:
    I am not responsible for your game crashing and your saves getting corrupted. Use this mod at your own risk. Backup your saves first!!

    Copyright:

    This document is Copyright ©(2012) and is the intellectual property of the author. Only Minecraftforum.net is able to host any of my material without my(TechGuy543) consent. It may not be placed on any web site or otherwise distributed publicly without advance written permission. If you mirror this mod page or anything I've(TechGuy543) made on any other site, I(TechGuy543) may express my angst at you in the form of a lawsuit.
    Posted in: Minecraft Mods
  • 0

    posted a message on Adding a dye to a recipe
    Quote from Necromanic

    A shapeless recipe. a glass and a dye gives a colored glass.

        		ModLoader.AddShapelessRecipe(new ItemStack(GlassRed, 1), new Object[] { new ItemStack(Item.dyePowder, 1, 1), Block.glass });


    what you where looking for?


    Im looking for the "Item.dyePowder" line i use to put Cactus green dye into a recipe
    Posted in: Modification Development
  • 0

    posted a message on Moar Food Please! (mod request)
    Sorry its taken me so long to get back to you, do you want this as a totally seperate mod called Moar Food or do you mind if i add the ideas to another food mod im making and give you the credit for the ideas
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on Adding a dye to a recipe
    This is probably really simple, but i cant figure it out. I want to add cactus green dye into a recipe, what code do i use, i know it goes something along the lines of:
    Item.dyePowder
    Posted in: Modification Development
  • 0

    posted a message on Java Error Help
    Just a few errors I need to fix, can anyone help?

    == MCP v4.4 ==
    > Recompiling client...
    javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
    ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
    rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
    craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/pat
    ches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    warning: [options] bootstrap class path not set in conjunction with -source 1.6
    src\minecraft\net\minecraft\src\mod_Carbonp.java:21: error: illegal start of typ
    e
    });
    ^
    
    src\minecraft\net\minecraft\src\mod_Carbonp.java:24: error: class, interface, or
     enum expected
    public String Version()
    ^
    
    src\minecraft\net\minecraft\src\mod_Carbonp.java:27: error: class, interface, or
     enum expected
    }
    ^
    
    3 errors
    1 warning
    ==================
    
    > Done in 3.38 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] Using Modded Item in recipe of another Modded Item
    Someone please reply! :)
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] Using Modded Item in recipe of another Modded Item
    I think thats the recipe is working fine, but the problem is these 3 errors:

    == MCP v4.4 ==
    > Recompiling client...
    javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
    ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
    rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
    craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/pat
    ches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    warning: [options] bootstrap class path not set in conjunction with -source 1.6
    src\minecraft\net\minecraft\src\mod_Carbonp.java:16: error: illegal start of typ
    e
    });
    ^
    
    src\minecraft\net\minecraft\src\mod_Carbonp.java:19: error: class, interface, or
     enum expected
    public String Version()
    ^
    
    src\minecraft\net\minecraft\src\mod_Carbonp.java:22: error: class, interface, or
     enum expected
    }
    ^
    
    3 errors
    1 warning
    ==================
    
    > Done in 2.51 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .


    This is the smelting recipe im using
    ModLoader.AddSmelting(Block.CarbonBlock.blockID, new ItemStack (mod_Carbonp.ItemCarbonp, 1));
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] Using Modded Item in recipe of another Modded Item
    It all works fine until i add the smelting recipe:
    ModLoader.AddSmelting(Block.CarbonBlock.blockID, new ItemStack (Item.Carbonp, 1));


    I get this error recompiling:

    == MCP v4.4 ==
    > Recompiling client...
    javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
    ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
    rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
    craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/pat
    ches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    warning: [options] bootstrap class path not set in conjunction with -source 1.6
    src\minecraft\net\minecraft\src\mod_Carbonp.java:16: error: illegal start of typ
    e
    });
    ^
    
    src\minecraft\net\minecraft\src\mod_Carbonp.java:19: error: class, interface, or
     enum expected
    public String Version()
    ^
    
    src\minecraft\net\minecraft\src\mod_Carbonp.java:22: error: class, interface, or
     enum expected
    }
    ^
    
    3 errors
    1 warning
    ==================
    
    > Done in 3.02 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .



    Can someone please tell me whats wrong with the recipe(if there is anything wrong) or tell me what to do to fix the problem
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED] Using Modded Item in recipe of another Modded Item
    I making a carbon mod along with some other new ores. When you break the carbon ore you get back an ore block. you smelt the ore block into a Carbon Fibre Piece which you can then make into tools, armour, etc. How can I do this smelting recipe in the "carbonp.java" file(Carbon Fibre Piece) as they are both modded items.
    Posted in: Modification Development
  • 0

    posted a message on Not Sure about an entity variable
    im making a grenade mod, getting 1 error when recompiling

    == MCP v4.4 ==
    > Recompiling client...
    javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
    ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
    rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
    craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/pat
    ches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    warning: [options] bootstrap class path not set in conjunction with -source 1.6
    src\minecraft\net\minecraft\src\EntityGrenade.java:117: error: cannot find symbo
    l
    super.attackEntityFrom(DamageSource.causeThrownDamage(Entity, entity), i);
    ^
    
    symbol:   variable Entity
    location: class EntityGrenade
    1 error
    1 warning
    ==================
    
    > Done in 9.00 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .


    Tried a few different variations with capitalization , some made it worse so i changed it back. It was originally (entity, entity)

    Here is the EntityGrenade.java

    package net.minecraft.src;
     
    public class EntityGrenade extends EntityItem
    {
     
    	public EntityGrenade(World world)
    	{
        	super(world);
        	setSize(0.5F, 0.5F);
        	yOffset = height / 2.0F;
        	item = new ItemStack(Item.itemsList[ItemGrenade.GrenadeID]);
        	bounceFactor = 0.6;
        	exploded = false;
        	stopped = false;
        	fuse = 0;
    	}
    	public EntityGrenade(World world, double x, double y, double z, float yaw, float pitch, double force, int fuseLength)
    	{
        	this(world);
    
        	setRotation(yaw, 0);
        	double xHeading = -MathHelper.sin((yaw * 3.141593F) / 180F);
        	double zHeading = MathHelper.cos((yaw * 3.141593F) / 180F);
        	motionX = force*xHeading*MathHelper.cos((pitch / 180F) * 3.141593F);
        	motionY = -force*MathHelper.sin((pitch / 180F) * 3.141593F);
        	motionZ = force*zHeading*MathHelper.cos((pitch / 180F) * 3.141593F);
    
        	setPosition(x+xHeading*0.8, y, z+zHeading*0.8);
        	prevPosX = posX;
        	prevPosY = posY;
        	prevPosZ = posZ;
     
        	fuse = fuseLength;
    	}
    	public EntityGrenade(World world, Entity entity)
    	{
        	this(world, entity.posX, entity.posY, entity.posZ, entity.rotationYaw, entity.rotationPitch, 0.5, 50);
    	}
    	
    	protected boolean canTriggerWalking()
    	{
        	return false;
    	}
     
    	public void onUpdate()
    	{
        	if(fuse-- <= 0)
        	{
            	explode();
        	}
        	if(!(stopped) && !(exploded))
        	{
                	double prevVelX = motionX;
                	double prevVelY = motionY;
                	double prevVelZ = motionZ;
                	prevPosX = posX;
                	prevPosY = posY;
                	prevPosZ = posZ;
                	moveEntity(motionX, motionY, motionZ);
     		
                	boolean collided = false;
                        	
                	if(motionX!=prevVelX)
                	{
                        	motionX = -prevVelX;
                        	collided = true;
                	}
                	if(motionZ!=prevVelZ)
                	{
                        	motionZ = -prevVelZ;
                	}
     		
                	if(motionY!=prevVelY)
                	{
                        	motionY = -prevVelY;
                        	collided = true;
                	}
                	else
                	{
                        	motionY -= 0.04;
                	}
     		
                	if(collided)
                	{
                        	motionX *= bounceFactor;
                        	motionY *= bounceFactor;
                        	motionZ *= bounceFactor;
                	}
     		
                	motionX *= 0.99;
                	motionY *= 0.99;
                	motionZ *= 0.99;
                	if(onGround && (motionX*motionX+motionY*motionY+motionZ*motionZ)<0.02)
                	{
                        	stopped = true;
                        	motionX = 0;
                        	motionY = 0;
                        	motionZ = 0;
                	}
        	}
    	}
    	public void onCollideWithPlayer(EntityPlayer entityplayer)
    	{
        	
    	}
    	protected void explode()
    	{
        	if(!exploded)
        	{
                	exploded = true;
                	worldObj.createExplosion(null, posX, posY, posZ, 5F);
        	}
    	}
     
       [b] public boolean attackEntity(Entity entity, int i)
    	{
        	[/b][b]super.attackEntityFrom(DamageSource.causeThrownDamage(Entity, entity), i);
        	explode();
        	return false;
    	}[/b]
    	public void writeEntityToNBT(NBTTagCompound nbttagcompound)
    	{
        	super.writeEntityToNBT(nbttagcompound);
        	nbttagcompound.setByte("Fuse", (byte)fuse);
    	}
     
    	public void readEntityFromNBT(NBTTagCompound nbttagcompound)
    	{
        	super.readEntityFromNBT(nbttagcompound);
        	fuse = nbttagcompound.getByte("Fuse");
    	}
    	double bounceFactor;
    	int fuse;
    	boolean exploded;
    	boolean collided;
    	boolean stopped;
    }
    Posted in: Modification Development
  • 0

    posted a message on Help Please!!
    Quote from TetsujinOni

    You don't have a renderIronBoat method in that class. Do you mean to be calling renderBoat, or want to rename it?


    I want to be calling RenderIronBoat so that i can have a different texture for the boat. is there a way to call RenderBoat but still change the skin? rather then having another file or do I need the RenderIronBoat aswell



    I also want to be able to get the ironboat back when i break it, but when i change the drop, this happens:

    == MCP v4.4 ==
    > Recompiling client...
    javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
    ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
    rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
    craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/pat
    ches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    [i][b]warning: [options] bootstrap class path not set in conjunction with -source 1.6
    src\minecraft\net\minecraft\src\EntityIronBoat.java:89: error: cannot find symbo
    l
    dropItemWithOffset(Item.ironBoat.shiftedIndex, 1, 0.0F);
    ^
    
    symbol:   variable ironBoat
    location: class Item[/b][/i]
    src\minecraft\net\minecraft\src\RenderIronBoat.java:51: error: cannot find symbo
    l
    renderIronBoat((EntityIronBoat)entity, d, d1, d2, f, f1);
    ^
    
    symbol:   method renderIronBoat(EntityIronBoat,double,double,double,float,float)
    
    location: class RenderIronBoat
    2 errors
    1 warning
    ==================
    
    > Done in 8.92 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .


    What should i do to fix it, I presume its a case error but cant find it
    Posted in: Modification Development
  • 0

    posted a message on Help Please!!
    Making an iron boat with custom texture, getting this when recompiling:

    == MCP v4.4 ==
    > Recompiling client...
    javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
    ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
    rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
    craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/pat
    ches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    warning: [options] bootstrap class path not set in conjunction with -source 1.6
    src\minecraft\net\minecraft\src\RenderIronBoat.java:51: error: cannot find symbo
    l
    renderIronBoat((EntityIronBoat)entity, d, d1, d2, f, f1);
    ^
    
    symbol:   method renderIronBoat(EntityIronBoat,double,double,double,float,float)
    
    location: class RenderIronBoat
    1 error
    1 warning
    ==================
    
    > Done in 13.32 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .




    Here is my RenderIronBoat.java:

    public class RenderIronBoat extends Render
    {
    
        public RenderIronBoat()
        {
            shadowSize = 0.5F;
            modelBoat = new ModelBoat();
        }
    
        public void renderBoat(EntityIronBoat entityironboat, double d, double d1, double d2, 
                float f, float f1)
        {
            GL11.glPushMatrix();
            GL11.glTranslatef((float)d, (float)d1, (float)d2);
            GL11.glRotatef(180F - f, 0.0F, 1.0F, 0.0F);
            float f2 = (float)entityironboat.timeSinceHit - f1;
            float f3 = (float)entityironboat.damageTaken - f1;
            if(f3 < 0.0F)
            {
                f3 = 0.0F;
            }
            if(f2 > 0.0F)
            {
                GL11.glRotatef(((MathHelper.sin(f2) * f2 * f3) / 10F) * (float)entityironboat.forwardDirection, 1.0F, 0.0F, 0.0F);
            }
            loadTexture("/boatSilver.png");
            float f4 = 0.75F;
            GL11.glScalef(f4, f4, f4);
            GL11.glScalef(1.0F / f4, 1.0F / f4, 1.0F / f4);
            loadTexture("/item/boat.png");
            GL11.glScalef(-1F, -1F, 1.0F);
            modelBoat.render(entityironboat, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
            GL11.glPopMatrix();
        }
    
        public void doRender(Entity entity, double d, double d1, double d2, 
                float f, float f1)
        {
            renderIronBoat((EntityIronBoat)entity, d, d1, d2, f, f1);
        }
    
        protected ModelBase modelBoat;
    }




    and my EntityIronBoat.java

    package net.minecraft.src;
    
    import java.util.List;
    import java.util.Random;
    
    // Referenced classes of package net.minecraft.src:
    //            Entity, World, Block, Item, 
    //            AxisAlignedBB, Material, MathHelper, EntityPlayer, 
    //            DamageSource, NBTTagCompound
    
    public class EntityIronBoat extends Entity
    {
    
        public EntityIronBoat(World world)
        {
            super(world);
            damageTaken = 0;
            timeSinceHit = 0;
            forwardDirection = 1;
            preventEntitySpawning = true;
            setSize(1.5F, 0.6F);
            yOffset = height / 2.0F;
        }
    
        protected boolean canTriggerWalking()
        {
            return false;
        }
    
        protected void entityInit()
        {
        }
    
        public AxisAlignedBB getCollisionBox(Entity entity)
        {
            return entity.boundingBox;
        }
    
        public AxisAlignedBB getBoundingBox()
        {
            return boundingBox;
        }
    
        public boolean canBePushed()
        {
            return true;
        }
    
        public EntityIronBoat(World world, double d, double d1, double d2)
        {
            this(world);
            setPosition(d, d1 + (double)yOffset, d2);
            motionX = 0.0D;
            motionY = 0.0D;
            motionZ = 0.0D;
            prevPosX = d;
            prevPosY = d1;
            prevPosZ = d2;
        }
    
        public double getMountedYOffset()
        {
            return (double)height * 0.0D - 0.30000001192092896D;
        }
    
        public boolean attackEntityFrom(DamageSource damagesource, int i)
        {
            if(worldObj.multiplayerWorld || isDead)
            {
                return true;
            }
            forwardDirection = -forwardDirection;
            timeSinceHit = 10;
            damageTaken += i * 10;
            setBeenAttacked();
            if(damageTaken > 40)
            {
                if(riddenByEntity != null)
                {
                    riddenByEntity.mountEntity(this);
                }
                for(int j = 0; j < 3; j++)
                {
                    dropItemWithOffset(Block.planks.blockID, 1, 0.0F);
                }
    
                for(int k = 0; k < 2; k++)
                {
                    dropItemWithOffset(Item.stick.shiftedIndex, 1, 0.0F);
                }
    
                setEntityDead();
            }
            return true;
        }
    
        public void performHurtAnimation()
        {
            forwardDirection = -forwardDirection;
            timeSinceHit = 10;
            damageTaken += damageTaken * 10;
        }
    
        public boolean canBeCollidedWith()
        {
            return !isDead;
        }
    
        public void setPositionAndRotation2(double d, double d1, double d2, float f, 
                float f1, int i)
        {
            boatX = d;
            boatY = d1;
            boatZ = d2;
            boatYaw = f;
            boatPitch = f1;
            field_9394_d = i + 4;
            motionX = velocityX;
            motionY = velocityY;
            motionZ = velocityZ;
        }
    
        public void setVelocity(double d, double d1, double d2)
        {
            velocityX = motionX = d;
            velocityY = motionY = d1;
            velocityZ = motionZ = d2;
        }
    
        public void onUpdate()
        {
            super.onUpdate();
            if(timeSinceHit > 0)
            {
                timeSinceHit--;
            }
            if(damageTaken > 0)
            {
                damageTaken--;
            }
            prevPosX = posX;
            prevPosY = posY;
            prevPosZ = posZ;
            int i = 5;
            double d = 0.0D;
            for(int j = 0; j < i; j++)
            {
                double d5 = (boundingBox.minY + ((boundingBox.maxY - boundingBox.minY) * (double)(j + 0)) / (double)i) - 0.125D;
                double d9 = (boundingBox.minY + ((boundingBox.maxY - boundingBox.minY) * (double)(j + 1)) / (double)i) - 0.125D;
                AxisAlignedBB axisalignedbb = AxisAlignedBB.getBoundingBoxFromPool(boundingBox.minX, d5, boundingBox.minZ, boundingBox.maxX, d9, boundingBox.maxZ);
                if(worldObj.isAABBInMaterial(axisalignedbb, Material.water))
                {
                    d += 1.0D / (double)i;
                }
            }
    
            if(worldObj.multiplayerWorld)
            {
                if(field_9394_d > 0)
                {
                    double d1 = posX + (boatX - posX) / (double)field_9394_d;
                    double d6 = posY + (boatY - posY) / (double)field_9394_d;
                    double d10 = posZ + (boatZ - posZ) / (double)field_9394_d;
                    double d14;
                    for(d14 = boatYaw - (double)rotationYaw; d14 < -180D; d14 += 360D) { }
                    for(; d14 >= 180D; d14 -= 360D) { }
                    rotationYaw += d14 / (double)field_9394_d;
                    rotationPitch += (boatPitch - (double)rotationPitch) / (double)field_9394_d;
                    field_9394_d--;
                    setPosition(d1, d6, d10);
                    setRotation(rotationYaw, rotationPitch);
                } else
                {
                    double d2 = posX + motionX;
                    double d7 = posY + motionY;
                    double d11 = posZ + motionZ;
                    setPosition(d2, d7, d11);
                    if(onGround)
                    {
                        motionX *= 0.5D;
                        motionY *= 0.5D;
                        motionZ *= 0.5D;
                    }
                    motionX *= 0.99000000953674316D;
                    motionY *= 0.94999998807907104D;
                    motionZ *= 0.99000000953674316D;
                }
                return;
            }
            if(d < 1.0D)
            {
                double d3 = d * 2D - 1.0D;
                motionY += 0.039999999105930328D * d3;
            } else
            {
                if(motionY < 0.0D)
                {
                    motionY /= 2D;
                }
                motionY += 0.0070000002160668373D;
            }
            if(riddenByEntity != null)
            {
                motionX += riddenByEntity.motionX * 0.20000000000000001D;
                motionZ += riddenByEntity.motionZ * 0.20000000000000001D;
            }
            double d4 = 0.40000000000000002D;
            if(motionX < -d4)
            {
                motionX = -d4;
            }
            if(motionX > d4)
            {
                motionX = d4;
            }
            if(motionZ < -d4)
            {
                motionZ = -d4;
            }
            if(motionZ > d4)
            {
                motionZ = d4;
            }
            if(onGround)
            {
                motionX *= 0.5D;
                motionY *= 0.5D;
                motionZ *= 0.5D;
            }
            moveEntity(motionX, motionY, motionZ);
            double d8 = Math.sqrt(motionX * motionX + motionZ * motionZ);
            if(d8 > 0.14999999999999999D)
            {
                double d12 = Math.cos(((double)rotationYaw * 3.1415926535897931D) / 180D);
                double d15 = Math.sin(((double)rotationYaw * 3.1415926535897931D) / 180D);
                for(int i1 = 0; (double)i1 < 1.0D + d8 * 60D; i1++)
                {
                    double d18 = rand.nextFloat() * 2.0F - 1.0F;
                    double d20 = (double)(rand.nextInt(2) * 2 - 1) * 0.69999999999999996D;
                    if(rand.nextBoolean())
                    {
                        double d21 = (posX - d12 * d18 * 0.80000000000000004D) + d15 * d20;
                        double d23 = posZ - d15 * d18 * 0.80000000000000004D - d12 * d20;
                        worldObj.spawnParticle("splash", d21, posY - 0.125D, d23, motionX, motionY, motionZ);
                    } else
                    {
                        double d22 = posX + d12 + d15 * d18 * 0.69999999999999996D;
                        double d24 = (posZ + d15) - d12 * d18 * 0.69999999999999996D;
                        worldObj.spawnParticle("splash", d22, posY - 0.125D, d24, motionX, motionY, motionZ);
                    }
                }
    
            }
            if(isCollidedHorizontally && d8 > 0.14999999999999999D)
            {
                if(!worldObj.multiplayerWorld)
                {
                    setEntityDead();
                    for(int k = 0; k < 3; k++)
                    {
                        dropItemWithOffset(Block.planks.blockID, 1, 0.0F);
                    }
    
                    for(int l = 0; l < 2; l++)
                    {
                        dropItemWithOffset(Item.stick.shiftedIndex, 1, 0.0F);
                    }
    
                }
            } else
            {
                motionX *= 0.99000000953674316D;
                motionY *= 0.94999998807907104D;
                motionZ *= 0.99000000953674316D;
            }
            rotationPitch = 0.0F;
            double d13 = rotationYaw;
            double d16 = prevPosX - posX;
            double d17 = prevPosZ - posZ;
            if(d16 * d16 + d17 * d17 > 0.001D)
            {
                d13 = (float)((Math.atan2(d17, d16) * 180D) / 3.1415926535897931D);
            }
            double d19;
            for(d19 = d13 - (double)rotationYaw; d19 >= 180D; d19 -= 360D) { }
            for(; d19 < -180D; d19 += 360D) { }
            if(d19 > 20D)
            {
                d19 = 20D;
            }
            if(d19 < -20D)
            {
                d19 = -20D;
            }
            rotationYaw += d19;
            setRotation(rotationYaw, rotationPitch);
            List list = worldObj.getEntitiesWithinAABBExcludingEntity(this, boundingBox.expand(0.20000000298023224D, 0.0D, 0.20000000298023224D));
            if(list != null && list.size() > 0)
            {
                for(int j1 = 0; j1 < list.size(); j1++)
                {
                    Entity entity = (Entity)list.get(j1);
                    if(entity != riddenByEntity && entity.canBePushed() && (entity instanceof EntityIronBoat))
                    {
                        entity.applyEntityCollision(this);
                    }
                }
    
            }
            for(int k1 = 0; k1 < 4; k1++)
            {
                int l1 = MathHelper.floor_double(posX + ((double)(k1 % 2) - 0.5D) * 0.80000000000000004D);
                int i2 = MathHelper.floor_double(posY);
                int j2 = MathHelper.floor_double(posZ + ((double)(k1 / 2) - 0.5D) * 0.80000000000000004D);
                if(worldObj.getBlockId(l1, i2, j2) == Block.snow.blockID)
                {
                    worldObj.setBlockWithNotify(l1, i2, j2, 0);
                }
            }
    
            if(riddenByEntity != null && riddenByEntity.isDead)
            {
                riddenByEntity = null;
            }
        }
    
        public void updateRiderPosition()
        {
            if(riddenByEntity == null)
            {
                return;
            } else
            {
                double d = Math.cos(((double)rotationYaw * 3.1415926535897931D) / 180D) * 0.40000000000000002D;
                double d1 = Math.sin(((double)rotationYaw * 3.1415926535897931D) / 180D) * 0.40000000000000002D;
                riddenByEntity.setPosition(posX + d, posY + getMountedYOffset() + riddenByEntity.getYOffset(), posZ + d1);
                return;
            }
        }
    
        protected void writeEntityToNBT(NBTTagCompound nbttagcompound)
        {
        }
    
        protected void readEntityFromNBT(NBTTagCompound nbttagcompound)
        {
        }
    
        public float getShadowSize()
        {
            return 0.0F;
        }
    
        public boolean interact(EntityPlayer entityplayer)
        {
            if(riddenByEntity != null && (riddenByEntity instanceof EntityPlayer) && riddenByEntity != entityplayer)
            {
                return true;
            }
            if(!worldObj.multiplayerWorld)
            {
                entityplayer.mountEntity(this);
            }
            return true;
        }
    
        public int damageTaken;
        public int timeSinceHit;
        public int forwardDirection;
        private int field_9394_d;
        private double boatX;
        private double boatY;
        private double boatZ;
        private double boatYaw;
        private double boatPitch;
        private double velocityX;
        private double velocityY;
        private double velocityZ;
    }
    Posted in: Modification Development
  • 0

    posted a message on MCP not finding ;
    MCP - Recompiling

    == MCP v4.4 ==
    > Recompiling client...
    javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
    ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
    rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
    craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/pat
    ches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    warning: [options] bootstrap class path not set in conjunction with -source 1.6
    src\minecraft\net\minecraft\src\mod_pstew.java:20: error: ')' expected
    ModLoader.AddRecipe(new ItemStack(itemPstew 15), new Object[]{
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:20: error: ';' expected
    ModLoader.AddRecipe(new ItemStack(itemPstew 15), new Object[]{
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:20: error: illegal start of expre
    ssion
    ModLoader.AddRecipe(new ItemStack(itemPstew 15), new Object[]{
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:20: error: ';' expected
    ModLoader.AddRecipe(new ItemStack(itemPstew 15), new Object[]{
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:20: error: not a statement
    ModLoader.AddRecipe(new ItemStack(itemPstew 15), new Object[]{
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:20: error: ';' expected
    ModLoader.AddRecipe(new ItemStack(itemPstew 15), new Object[]{
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:21: error: not a statement
    " * ", " & ",  Character.valueOf('*'), Item.porkCooked, Character.valueOf('&'),
    Item.field_35420_bm.shiftedIndex;
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:21: error: ';' expected
    " * ", " & ",  Character.valueOf('*'), Item.porkCooked, Character.valueOf('&'),
    Item.field_35420_bm.shiftedIndex;
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:21: error: ';' expected
    " * ", " & ",  Character.valueOf('*'), Item.porkCooked, Character.valueOf('&'),
    Item.field_35420_bm.shiftedIndex;
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:21: error: not a statement
    " * ", " & ",  Character.valueOf('*'), Item.porkCooked, Character.valueOf('&'),
    Item.field_35420_bm.shiftedIndex;
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:21: error: ';' expected
    " * ", " & ",  Character.valueOf('*'), Item.porkCooked, Character.valueOf('&'),
    Item.field_35420_bm.shiftedIndex;
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:21: error: ';' expected
    " * ", " & ",  Character.valueOf('*'), Item.porkCooked, Character.valueOf('&'),
    Item.field_35420_bm.shiftedIndex;
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:21: error: not a statement
    " * ", " & ",  Character.valueOf('*'), Item.porkCooked, Character.valueOf('&'),
    Item.field_35420_bm.shiftedIndex;
    ^
    
    src\minecraft\net\minecraft\src\mod_pstew.java:22: error: illegal start of expre
    ssion
    });
    ^
    
    14 errors
    1 warning
    ==================
    
    > Done in 2.54 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .



    mod_pstew.java file

    package net.minecraft.src;
    import java.util.Random;
    
    public class mod_pstew extends BaseMod
    {
    
    //This declares our new item, called itemHenry which is an item of type "ItemHenry".
    	public static final Item itemHenry = new ItemHenry(2000).setItemName("asdf");
    
    	public mod_pstew()
    	{
    
    	//This overrides the texture pack and adds our own custom texture to the item.
    		itemPstew.iconIndex = ModLoader.addOverride("/gui/items.png", "/poultry stew.png");
    
    	//This adds the in game name
    		ModLoader.AddName(itemPstew, "Poultry Stew");
    
    	//This adds the crafting recipe so that we can craft this item.
    		ModLoader.AddRecipe(new ItemStack(itemPstew 15), new Object[]{
    			" * ", " & ",  Character.valueOf('*'), Item.porkCooked, Character.valueOf('&'), Item.field_35420_bm.shiftedIndex;
    		});
    	}
    
    	public String Version()
    	{
    		return "3.14159265";
    	}
    }



    dont know why but even when there is a ; at the end of the line, MCP doesnt find it.
    Posted in: Modification Development
  • To post a comment, please .