This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
== 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 . . .
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; }
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
together they are powerful beyond imagination."