• 0

    posted a message on My Mob Trap Isn't Spawning Mobs
    Its a superflat but it works now :D



    Why dont the mobs fall through the hole? Should i have used signs instead of gates?
    Posted in: Discussion
  • 0

    posted a message on My Mob Trap Isn't Spawning Mobs
    Can anyone give me a hand?

    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!!!
    Posted in: Discussion
  • 0

    posted a message on Jdembo's Forge/Modloader Modding Tutorials (How to install/create mods!) - [1.4.7]
    Quote from Jdembo

    Is this a full copy from ItemBucketMilk?

    If so, it should work. If not, try doing that.


    I got it to work, thanks!
    Posted in: Tutorials
  • 0

    posted a message on Jdembo's Forge/Modloader Modding Tutorials (How to install/create mods!) - [1.4.7]
    Quote from Jdembo

    It wasn't directed to you, the onRightClick is for something to interact with a right-click, like throwing a potion.


    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:

    package net.minecraft.src;
    
    public class ItemChocolateMilk extends ItemFood
    {
        public ItemChocolateMilk(int par1, int par2)
        {
            super(par1, par2, false);
            this.setMaxStackSize(1);
        }
    
        public ItemStack onFoodEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
        {
            super.onFoodEaten(par1ItemStack, par2World, par3EntityPlayer);
            return new ItemStack(mod_HolidayMod.Mug);
        }
        
        public EnumAction getItemUseAction(ItemStack par1ItemStack)
        {
                 return EnumAction.drink;
        }
    }
    Posted in: Tutorials
  • 0

    posted a message on Jdembo's Forge/Modloader Modding Tutorials (How to install/create mods!) - [1.4.7]
    Quote from Jdembo

    Thanks :)

    That should work, be sure to add the onRightClick method.


    How would I add that onRightClick Method?
    Posted in: Tutorials
  • 0

    posted a message on [1.4.7] Jbond98's Beginner/Advanced ModLoader Minecraft Modding Tutorials! -Everything Updated to 1.4.7! [Updated 1/23/2013]
    Quote from yourself133

    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?

    Quote from Wroon

    Same. Its as if modloader isn't telling eclipse or minecraft to load my mods.


    Could you provide a sample of your code? Maybe you have conflicting ids or something. Or the path for your texture isnt correct...
    Posted in: Tutorials
  • 0

    posted a message on Jdembo's Forge/Modloader Modding Tutorials (How to install/create mods!) - [1.4.7]
    Hey can someone help me with this,

    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.
    Posted in: Tutorials
  • 0

    posted a message on [1.4.7] Jbond98's Beginner/Advanced ModLoader Minecraft Modding Tutorials! -Everything Updated to 1.4.7! [Updated 1/23/2013]
    Hey can someone help me with this,

    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
    Posted in: Tutorials
  • 1

    posted a message on [1.4.7] Jbond98's Beginner/Advanced ModLoader Minecraft Modding Tutorials! -Everything Updated to 1.4.7! [Updated 1/23/2013]
    Quote from pokechat8978

    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.
    Posted in: Tutorials
  • 0

    posted a message on [1.4.7] Jbond98's Beginner/Advanced ModLoader Minecraft Modding Tutorials! -Everything Updated to 1.4.7! [Updated 1/23/2013]
    Hey Jbond, Could you make a tutorial on mob making or could someone direct me to one?
    Posted in: Tutorials
  • 0

    posted a message on Jdembo's Forge/Modloader Modding Tutorials (How to install/create mods!) - [1.4.7]
    I figured out how to add cocoa beans, but now I need to know how to make the milk drinkable.
    Posted in: Tutorials
  • 0

    posted a message on [1.4.7] Jbond98's Beginner/Advanced ModLoader Minecraft Modding Tutorials! -Everything Updated to 1.4.7! [Updated 1/23/2013]
    I have an item, chocolate milk, that I want to make drinkable. How do I do this?
    Posted in: Tutorials
  • 0

    posted a message on Jdembo's Forge/Modloader Modding Tutorials (How to install/create mods!) - [1.4.7]
    How can I add cocoa beans to a recipe? I'm making a chocolate milk item and I need chocolate for the milk.
    Posted in: Tutorials
  • 0

    posted a message on [1.4.7] Jbond98's Beginner/Advanced ModLoader Minecraft Modding Tutorials! -Everything Updated to 1.4.7! [Updated 1/23/2013]
    Quote from Tainz

    I need help with a coding problem, here is my code:

    BlockElvenLog.java



    package net.minecraft.src;

    import java.util.Random;


    public class BlockElvenLog extends Block
    {
    protected BlockElvenLog(int i)
    {
    super(i, Material.wood);
    }


    public int quantityDropped(Random random)
    {
    return 1;
    }

    public int idDropped(int i, Random random, int j)
    {
    return mod_3rdEra.ElvenLog.blockID;
    }


    public void harvestBlock(World world, EntityPlayer entityplayer, int i, int j, int k, int l)
    {
    super.harvestBlock(world, entityplayer, i, j, k, l);
    }

    public void onBlockRemoval(World world, int i, int j, int k)
    {
    byte byte0 = 4;
    int l = byte0 + 1;
    if(world.checkChunksExist(i - l, j - l, k - l, i + l, j + l, k + l))
    {
    for(int i1 = -byte0; i1 <= byte0; i1++)
    {
    for(int j1 = -byte0; j1 <= byte0; j1++)
    {
    for(int k1 = -byte0; k1 <= byte0; k1++)
    {
    int l1 = world.getBlockId(i + i1, j + j1, k + k1);
    if(l1 != mod_3rdEra.ElvenLeaf.blockID) //Change to your leaf block.
    {
    continue;
    }
    int i2 = world.getBlockMetadata(i + i1, j + j1, k + k1);
    if((i2 & 8) == 0)
    {
    world.setBlockMetadata(i + i1, j + j1, k + k1, i2 | 8);
    }
    }
    }
    }
    }
    }

    public Block getBlockTextureFromSideAndMetadata(int i, int j)
    {
    if(i == 0)
    return mod_3rdEra.ElvenLogBottom;
    if(i == 1)
    return mod_3rdEra.ElvenLogBottom;
    if(i == 2)
    return mod_3rdEra.ElvenLog;
    if(i == 3)
    return mod_3rdEra.ElvenLog;
    if(i == 4)
    return mod_3rdEra.ElvenLog;
    if(i == 5)
    return mod_3rdEra.ElvenLog;

    if(j == 1)
    {
    return 116;
    }
    return j != 2 ? 20 : 117;

    }


    protected int damageDropped(int i)
    {
    return i;
    }
    }




    public Block getBlockTextureFromSideAndMetadata(int i, int j)
    {
    if(i == 0)
    return mod_3rdEra.ElvenLogBottom;
    if(i == 1)
    return mod_3rdEra.ElvenLogBottom;
    if(i == 2)
    return mod_3rdEra.ElvenLog;
    if(i == 3)
    return mod_3rdEra.ElvenLog;
    if(i == 4)
    return mod_3rdEra.ElvenLog;
    if(i == 5)
    return mod_3rdEra.ElvenLog;

    if(j == 1)
    {
    return 116;
    }
    return j != 2 ? 20 : 117;

    116 is an error, return j ! = 2 ? 20 :117; is an error, Block is an error

    They all want tot be changed to int, then more errors come up, if you have a solution add me on skype: eric-dubez


    Please put it in code tags
    Posted in: Tutorials
  • 0

    posted a message on [1.4.7] Jbond98's Beginner/Advanced ModLoader Minecraft Modding Tutorials! -Everything Updated to 1.4.7! [Updated 1/23/2013]
    Quote from Mark136

    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?
    Posted in: Tutorials
  • To post a comment, please .