I followed make your own block tutorial and the block doesnt show up when I test it? There are no errors or anything that pop up it just doesnt show up in game. I made my own png for the ore and put it in a folder inside the bin named textures. Is that where i went wrong?
I'm adding a new mob, an evil snowman, that will attack players with snowballs. I'm getting no errors with any of my files except the entity file for my mob. Here's the code.
package net.minecraft.src;
import java.util.Random;
public class EntityEvilSnowman extends EntityGolem implements IRangedAttackMob
{
public EntityEvilSnowman(World world)
{
super(world);
texture = "/items/EvilSnowman.png";
this.setSize(0.4F, 1.8F);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(1, new EntityAIArrowAttack(this, 0.25F, 20, 10.0F));
this.tasks.addTask(2, new EntityAIWander(this, 0.2F));
this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(4, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 16.0F, 0, true, false, IMob.mobSelector));
}
public boolean isAIEnabled()
{
return true;
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound); // this saves the mob to disk
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound); // this loads the mob from disk
}
/**
* Returns the sound this mob makes while it's alive.
*/
protected String getLivingSound()
{
return "mob.pig";
}
/**
* Returns the sound this mob makes when it is hurt.
*/
protected String getHurtSound()
{
return "mob.cow";
}
/**
* Returns the sound this mob makes on death.
*/
protected String getDeathSound()
{
return "mob.cowhurt";
}
/**
* Returns the volume for the sounds this mob makes.
*/
protected float getSoundVolume()
{
return 0.4F;
}
/**
* Returns the item ID for the item the mob drops on death.
*/
protected int getDropItemId()
{
return Item.snowball.shiftedIndex;
}
@Override
public int getMaxHealth() {
// TODO Auto-generated method stub
return 10;
}
}
I copied the tasks of a snow golem and changed it so that it would attack a player. The errors I'm getting are at the, "public class EntityEvilSnowman". The error is, "The type EntityEvilSnowman must implement the inherited abstract method EntityAgeable.func_90011_a(EntityAgeable)". Can someone explain to me what this error means and any possible solutions? I haven't changed the sounds yet so dont freak out on me cuz my snowman may sound like a pig/cow thing.
EDIT: Nevermind guys i fixed it! I had to do a complete code overhaul since apparantly the code template I was using was for 1.2.5. I guess I really need to check those things, thanks though.
I'm adding a new mob, an evil snowman, that will attack players with snowballs. I'm getting no errors with any of my files except the entity file for my mob. Here's the code.
package net.minecraft.src;
import java.util.Random;
public class EntityEvilSnowman extends EntityGolem implements IRangedAttackMob
{
public EntityEvilSnowman(World world)
{
super(world);
texture = "/items/EvilSnowman.png";
this.setSize(0.4F, 1.8F);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(1, new EntityAIArrowAttack(this, 0.25F, 20, 10.0F));
this.tasks.addTask(2, new EntityAIWander(this, 0.2F));
this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(4, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 16.0F, 0, true, false, IMob.mobSelector));
}
public boolean isAIEnabled()
{
return true;
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound); // this saves the mob to disk
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound); // this loads the mob from disk
}
/**
* Returns the sound this mob makes while it's alive.
*/
protected String getLivingSound()
{
return "mob.pig";
}
/**
* Returns the sound this mob makes when it is hurt.
*/
protected String getHurtSound()
{
return "mob.cow";
}
/**
* Returns the sound this mob makes on death.
*/
protected String getDeathSound()
{
return "mob.cowhurt";
}
/**
* Returns the volume for the sounds this mob makes.
*/
protected float getSoundVolume()
{
return 0.4F;
}
/**
* Returns the item ID for the item the mob drops on death.
*/
protected int getDropItemId()
{
return Item.snowball.shiftedIndex;
}
@Override
public int getMaxHealth() {
// TODO Auto-generated method stub
return 10;
}
}
I copied the tasks of a snow golem and changed it so that it would attack a player. The errors I'm getting are at the, "public class EntityEvilSnowman". The error is, "The type EntityEvilSnowman must implement the inherited abstract method EntityAgeable.func_90011_a(EntityAgeable)". Can someone explain to me what this error means and any possible solutions?
EDIT: Nevermind guys i fixed it! I had to do a complete code overhaul since apparantly the code template I was using was for 1.2.5. I guess I really need to check those things, thanks though
You're not supposed to open it. This is a result of not removing the META-INF folder, which you're not supposed to remove, because you need the META-INF folder to make mods.
No...? You have to delete the META-INF folder after installing any mods. META-INF prevents you from using mods.
can please someone help me with my mod problem, i have 230 items & 12 blocks but they won't load
there are no errors or anything other problems with my mod, i only see modloader initializing... Done.
but when i create a map and look in every thing where i can find my items ( creative tab /give player*** item 751)
i did'nt find any item nor blocks, please help me
mark136
in one of my prev posts, you can find some files of my
Check to see if any ids are conflicting?
Can you post a sample of your code for one or two of your items?
0
Why dont the mobs fall through the hole? Should i have used signs instead of gates?
0
I'm trying to make a mob trap but the mobs aren't spawning.
Is something conflicting with the spawning process? i.e. Open space, water, etc.
P.s. It's incomplete at this point, but mobs still wont spawn...
EDIT: Its only spawning bats!!!
0
I got it to work, thanks!
0
Oh ok. But can you tell me my problem here. I have the code it a seperate java file but its not making the drinking animation.
CODE:
0
How would I add that onRightClick Method?
0
Could you provide a sample of your code? Maybe you have conflicting ids or something. Or the path for your texture isnt correct...
0
I'm adding a new mob, an evil snowman, that will attack players with snowballs. I'm getting no errors with any of my files except the entity file for my mob. Here's the code.
I copied the tasks of a snow golem and changed it so that it would attack a player. The errors I'm getting are at the, "public class EntityEvilSnowman". The error is, "The type EntityEvilSnowman must implement the inherited abstract method EntityAgeable.func_90011_a(EntityAgeable)". Can someone explain to me what this error means and any possible solutions? I haven't changed the sounds yet so dont freak out on me cuz my snowman may sound like a pig/cow thing.
EDIT: Nevermind guys i fixed it! I had to do a complete code overhaul since apparantly the code template I was using was for 1.2.5. I guess I really need to check those things, thanks though.
0
I'm adding a new mob, an evil snowman, that will attack players with snowballs. I'm getting no errors with any of my files except the entity file for my mob. Here's the code.
I copied the tasks of a snow golem and changed it so that it would attack a player. The errors I'm getting are at the, "public class EntityEvilSnowman". The error is, "The type EntityEvilSnowman must implement the inherited abstract method EntityAgeable.func_90011_a(EntityAgeable)". Can someone explain to me what this error means and any possible solutions?
EDIT: Nevermind guys i fixed it! I had to do a complete code overhaul since apparantly the code template I was using was for 1.2.5. I guess I really need to check those things, thanks though
1
No...? You have to delete the META-INF folder after installing any mods. META-INF prevents you from using mods.
0
0
0
0
0
Please put it in code tags
0
Check to see if any ids are conflicting?
Can you post a sample of your code for one or two of your items?