*** Minecraft Coder Pack Version 2.7 ***
Finding java.exe... if you want to speed this up, add it to your PATH
Finding javac.exe... if you want to speed this up, add it to your PATH
Path set.
Unable to locate java.exe. Please verify that it is in the PATH.
Press any key to continue . . .
is that suppose to happen or am i so stupid that i did something wrong?
make sure to download the latest java runtime environment and java development kit. someone offered to make a video tutorial, but i don't know what happened to that.
how do i make sure i have them? im downloading JDK cuz im pretty sure i have the runtime environment
EDIT: i figured out i have them both, but i still get the same error. it said java is already at the latest update, but when i see if theres an update for the JDK, it takes me to a uninstall wizard
Weird, are you on a pc or a mac? What operating system? There's a readme file that comes with MCP that tells you how to set your PATH variable, but be careful when you do this. The first time I did, I overwrote my PATH instead of adding to it, and it took me days to fully fix it.
Most people don't make their stuff for you, they make it for them and make it available to you. That being the case, you should be grateful they took the time to even upload it at all, it's just an extra pain in the ass really. On top of that, most people offer a mirror site anyways.
tldr: then don't download it... doesn't hurt the authors feelings.
I know this has been suggested, somewhat, but check to see if javaw is running under processes, not applications. If so end task, that should do it. Are you using and custom texture packs? try removing them from your textures folder. Those two things have caused this problem for me before. Good luck man.
I keep getting one error when trying to recomplie, and its with the pigman-neutral code
Error I get is:
sources\minecraft\net\minecraft\src\EntityGUmbrella.java:62: cannot find symbol
symbol: class List
location: Class net.minecraft.src.EntityGumbrella
List list = worldObj.getEntitiesWithinAABBExcludingEntity(this, boundingBox.Expand(32D, 32D, 32D>>;
^
The ^ is under the N in Expand
My mob code is here, copied the part with the error from the Pigman code.. so I can't see why its erroring
package net.minecraft.src;
public class EntityGUmbrella extends EntityMobs
{
public EntityGUmbrella(World world)
{
super(world);
angerLevel = 0;
randomSoundDelay = 0;
texture = "/mob/GUmbrella.png";
}
protected int getDropItemId()
{
//This is the item your mob will drop
return Item.ingotIron.shiftedIndex;
}
public void onUpdate()
{
moveSpeed = playerToAttack == null ? 0.5F : 0.95F;
if(randomSoundDelay > 0 && --randomSoundDelay == 0)
{
worldObj.playSoundAtEntity(this, "mob.zombiepig.zpigangry", getSoundVolume() * 2.0F, ((rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F) * 1.8F);
}
super.onUpdate();
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound);
nbttagcompound.setShort("Anger", (short)angerLevel);
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound);
angerLevel = nbttagcompound.getShort("Anger");
}
protected Entity findPlayerToAttack()
{
if(angerLevel == 0)
{
return null;
} else
{
return super.findPlayerToAttack();
}
}
public void onLivingUpdate()
{
super.onLivingUpdate();
}
public boolean attackEntityFrom(Entity entity, int i)
{
if(entity instanceof EntityPlayer)
{
List list = worldObj.getEntitiesWithinAABBExcludingEntity(this, boundingBox.expand(32D, 32D, 32D));
for(int j = 0; j < list.size(); j++)
{
Entity entity1 = (Entity)list.get(j);
if(entity1 instanceof EntityGUmbrella)
{
EntityGUmbrella entitygumbrella = (EntityGUmbrella)entity1;
entitygumbrella.becomeAngryAt(entity);
}
}
becomeAngryAt(entity);
}
return super.attackEntityFrom(entity, i);
}
private void becomeAngryAt(Entity entity)
{
playerToAttack = entity;
angerLevel = 400 + rand.nextInt(400);
randomSoundDelay = rand.nextInt(40);
}
public boolean getCanSpawnHere()
{
if(worldObj.countEntities(this.getClass()) >= 15){
return false;
}
int i = MathHelper.floor_double(posX);
int j = MathHelper.floor_double(boundingBox.minY);
int k = MathHelper.floor_double(posZ);
int l = worldObj.getBlockId(i, j - 1, k);
return worldObj.difficultySetting > 0 && worldObj.checkIfAABBIsClear(boundingBox) && worldObj.getCollidingBoundingBoxes(this, boundingBox).size() == 0 && !worldObj.getIsAnyLiquid(boundingBox);
}
public ItemStack getHeldItem()
{
return defaultHeldItem;
}
private int angerLevel;
private int randomSoundDelay;
private static final ItemStack defaultHeldItem;
static
{
defaultHeldItem = new ItemStack(Item.swordStone, 1);
}
}
Sorry to requote this, but i just caught this upon reading a second time, you can't have your mob name different from the mob file name, you need to change the u in the filename to a capital.
Lol wtf are you talking about? He wasn't disheartened, and nobody was giving him crap, he was confirming an error... I agree with most of the stuff you say but it was a bit overboard considering nobody was giving him crap in the first place...
Hey guys, only my second post on these forums but I have been watching over the Mapping and Modding Section for quite some time and was particularly interested in this mod, it is great and has loads of potential. I did have a cool idea for the mod too, but I’m not sure if it’s a) historically accurate or :cool.gif: easily doable. However, it would be pretty cool to see something like it. I was thinking that we could play with the idea of time-travel while also mixed with the idea of corpses.
When a dinosaur dies, his corpse falls to the ground (or at least something happens that marks where he has died). When you return to the present, a couple of blocks or so underneath the dinosaur there *may* be a spawn of coal (the corpse having been compressed for so long). This sounded like a cool idea, but then I realised that the Jurassic was a whole different world to the normal one, and so the landscape wouldn’t be the same. So one could either a) have the landscape the same but with different biomes or :cool.gif: have the coal form X blocks relative to the pig you rode. Either way is in my eyes pretty difficult, and seems worthless considering it’s only a small idea, but then I thought about blocks that could time-travel!
The gist is if you put a time-travelable (yeah, I know, a bit of a weird word) block in the Jurassic, it would still be there in the present! Therefore you could build a house (or chest?) out of obsidian in the Jurrasic, and still find all your goodies back in the present. These are all just thoughts, and they probably sound a bit confusing, but hopefully I can get some feedback on these ideas. Good luck with the mod!
Seems to me like even if it was possible it would be extremely difficult to do. You have good ideas, but I don't expect them to be used.
*** Minecraft Coder Pack Version 2.7 ***
Finding java.exe... if you want to speed this up, add it to your PATH
Finding javac.exe... if you want to speed this up, add it to your PATH
Path set.
Unable to locate java.exe. Please verify that it is in the PATH.
Press any key to continue . . .
is that suppose to happen or am i so stupid that i did something wrong?
make sure to download the latest java runtime environment and java development kit. someone offered to make a video tutorial, but i don't know what happened to that.
Yeah i think the creepers are a bit overboard. And pretty much everything else you suggested is already on the list... so... thanks for stopping by lol.
Lol that comment was ripped from my thread :biggrin.gif:
Anyway, amazing idea, ily now --- WAIT. :OOOO!!!!
Lol. Well I couldn't sig it, I had to do something.
Quote from MeltingData »
He should be able to take 3 hearts from you spaced REAL far apart. I don't think hounding the player at their heels would be good. Make him stay far enough away that if you pressed f5, you still wouldn't see him.
I keep getting one error when trying to recomplie, and its with the pigman-neutral code
Error I get is:
sources\minecraft\net\minecraft\src\EntityGUmbrella.java:62: cannot find symbol
symbol: class List
location: Class net.minecraft.src.EntityGumbrella
List list = worldObj.getEntitiesWithinAABBExcludingEntity(this, boundingBox.Expand(32D, 32D, 32D>>;
^
The ^ is under the N in Expand
My mob code is here, copied the part with the error from the Pigman code.. so I can't see why its erroring
package net.minecraft.src;
public class EntityGUmbrella extends EntityMobs
{
public EntityGUmbrella(World world)
{
super(world);
angerLevel = 0;
randomSoundDelay = 0;
texture = "/mob/GUmbrella.png";
}
protected int getDropItemId()
{
//This is the item your mob will drop
return Item.ingotIron.shiftedIndex;
}
public void onUpdate()
{
moveSpeed = playerToAttack == null ? 0.5F : 0.95F;
if(randomSoundDelay > 0 && --randomSoundDelay == 0)
{
worldObj.playSoundAtEntity(this, "mob.zombiepig.zpigangry", getSoundVolume() * 2.0F, ((rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F) * 1.8F);
}
super.onUpdate();
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound);
nbttagcompound.setShort("Anger", (short)angerLevel);
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound);
angerLevel = nbttagcompound.getShort("Anger");
}
protected Entity findPlayerToAttack()
{
if(angerLevel == 0)
{
return null;
} else
{
return super.findPlayerToAttack();
}
}
public void onLivingUpdate()
{
super.onLivingUpdate();
}
public boolean attackEntityFrom(Entity entity, int i)
{
if(entity instanceof EntityPlayer)
{
List list = worldObj.getEntitiesWithinAABBExcludingEntity(this, boundingBox.expand(32D, 32D, 32D));
for(int j = 0; j < list.size(); j++)
{
Entity entity1 = (Entity)list.get(j);
if(entity1 instanceof EntityGUmbrella)
{
EntityGUmbrella entitygumbrella = (EntityGUmbrella)entity1;
entitygumbrella.becomeAngryAt(entity);
}
}
becomeAngryAt(entity);
}
return super.attackEntityFrom(entity, i);
}
private void becomeAngryAt(Entity entity)
{
playerToAttack = entity;
angerLevel = 400 + rand.nextInt(400);
randomSoundDelay = rand.nextInt(40);
}
public boolean getCanSpawnHere()
{
if(worldObj.countEntities(this.getClass()) >= 15){
return false;
}
int i = MathHelper.floor_double(posX);
int j = MathHelper.floor_double(boundingBox.minY);
int k = MathHelper.floor_double(posZ);
int l = worldObj.getBlockId(i, j - 1, k);
return worldObj.difficultySetting > 0 && worldObj.checkIfAABBIsClear(boundingBox) && worldObj.getCollidingBoundingBoxes(this, boundingBox).size() == 0 && !worldObj.getIsAnyLiquid(boundingBox);
}
public ItemStack getHeldItem()
{
return defaultHeldItem;
}
private int angerLevel;
private int randomSoundDelay;
private static final ItemStack defaultHeldItem;
static
{
defaultHeldItem = new ItemStack(Item.swordStone, 1);
}
}
Add this to the top of your entity code, before public class
0
... yes it is...
0
0
0
Weird, are you on a pc or a mac? What operating system? There's a readme file that comes with MCP that tells you how to set your PATH variable, but be careful when you do this. The first time I did, I overwrote my PATH instead of adding to it, and it took me days to fully fix it.
0
tldr: then don't download it... doesn't hurt the authors feelings.
0
0
Sorry to requote this, but i just caught this upon reading a second time, you can't have your mob name different from the mob file name, you need to change the u in the filename to a capital.
0
It defaults to the player sound.
0
Lol wtf are you talking about? He wasn't disheartened, and nobody was giving him crap, he was confirming an error... I agree with most of the stuff you say but it was a bit overboard considering nobody was giving him crap in the first place...
0
0
make sure to download the latest java runtime environment and java development kit. someone offered to make a video tutorial, but i don't know what happened to that.
0
You patched correctly, but under mods and texture packs you don't have default selected. select default and it should work fine.
0
0
Lol. Well I couldn't sig it, I had to do something.
noted.
Maybe I didn't.
0
Add this to the top of your entity code, before public class that should fix it.