• 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    I wanted to create a mod that use wools which is different colors, but I do not know what should be the Block.whatever or Item.whatever.
    And for those who don't understand:
    ModLoader.AddRecipe(new ItemStack(ARGH,1), new Object[]{
    "*", "X", Character.valueOf('*'), Block. ???

    the
    Block. ???
    is the wool. What should the '???' be called? And what must you use to use wool with different colors?
    Help will really be appreciated :iapprove: :iapprove:
    :Furnace: for anyone who answers the question
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader1.7.3] Adding Custom MOBs and MORE!
    Quote from InNeedOfHelp

    I did put it in the minecraft.jar file, in fact, i used the startclient.bat previously. Now, i reobf and drag them into my minecraft.jar folder and checked that everything was there.
    Result:

    As you can see, the monster is obviously not spawning(might take a while to load) :sad.gif:


    Still no texture :sad.gif:

    If someone knows how to solve this, will be rewarded with 10 truckloads of :Diamond: :Diamond: :Diamond:

    Edit: Created a new world, and world is filled with that mobs=lag city
    But i still cannot fix the other problem someone please help! :iapprove:
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    still get the same error :sad.gif: Thanks for helping anyway :iapprove:
    error(again):
    == MCP v4.3 ==
    > Recompiling client...
    "C:\Program Files\Java\jdk1.7.0\bin\javac.exe" -g -verbose -classpath "lib/;lib/
    *;jars/bin/minecraft.jar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_u
    til.jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft\net\minecraft\
    client\*.java src/minecraft\net\minecraft\isom\*.java src/minecraft\net\minecraf
    t\src\*.java  conf/patches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    src\minecraft\net\minecraft\src\mod_foods.java:15: error: cannot find symbol
    "*","X","*", Character.valueOf('*'), Item.bread, Character.valueOf('X'), Item.meat
    ^
    
    symbol:   variable meat
    location: class Item
    1 error
    ==================
    
    > Done in 11.11 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    What do you mean 2 int 1 boolean? :SSSS:
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader1.7.3] Adding Custom MOBs and MORE!
    I did put it in the minecraft.jar file, in fact, i used the startclient.bat previously. Now, i reobf and drag them into my minecraft.jar folder and checked that everything was there.
    Result:

    As you can see, the monster is obviously not spawning(might take a while to load) :sad.gif:


    Still no texture :sad.gif:

    If someone knows how to solve this, will be rewarded with 10 truckloads of :Diamond: :Diamond: :Diamond:
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader1.7.3] Adding Custom MOBs and MORE!
    1. Paint.net
    2.texture is named test but saved as png
    3.yes
    Please help
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader1.7.3] Adding Custom MOBs and MORE!
    Help I tried to do the adding custom mobs and it recompile successfully but when they spawn, they are white in colour(the rarity is set to 200):


    My EntityTest:
    ackage net.minecraft.src;
    
    public class EntityTest extends EntityAnimal
    {
            public EntityTest(World world)
            {
                    super(world);
                    texture = "/mob/test.png";
                    setSize(0.9F,1.3F);
                    moveSpeed = 0.75F;
                    //yOffset *= 6F;
            health = 1;
    
                    
                    
            }
        public void writeEntityToNBT(NBTTagCompound nbttagcompound) 
        { 
            super.writeEntityToNBT(nbttagcompound); 
        } 
     
        public void readEntityFromNBT(NBTTagCompound nbttagcompound) 
        { 
            super.readEntityFromNBT(nbttagcompound); 
        } 
     
        protected String getHurtSound() 
        { 
            return "mob.cow"; 
        } 
     
        protected String getDeathSound() 
        { 
            return "mob.cow"; 
        } 
     
        protected float getSoundVolume() 
        { 
            return 0.4F; 
        } 
     
        protected int getDropItemId() 
        { 
            return 0; 
        } 
        
        public boolean interact(EntityPlayer entityplayer)
        {
            //can use this for right click reactions
            return false;
        }
    }

    And the one for the model:
    package net.minecraft.src;
    //Exported java file
    //Keep in mind that you still need to fill in some blanks
    // - ZeuX
    
    public class Test extends ModelBase
    {
    	public Test()
    	{
    		head = new ModelRenderer(16, 0);
    		head.addBox(-4F, -4F, -8F, 8, 8, 8, 0F);
    		head.setRotationPoint(0F, 4.066667F, -6F);
    		head.rotateAngleX = 0F;
    		head.rotateAngleY = 0F;
    		head.rotateAngleZ = 0F;
    		head.mirror = false;
    		body = new ModelRenderer(32, 11);
    		body.addBox(-5F, -10F, -7F, 12, 17, 4, 0F);
    		body.setRotationPoint(-1F, 8F, 2F);
    		body.rotateAngleX = 0.6785097F;
    		body.rotateAngleY = 0F;
    		body.rotateAngleZ = 0F;
    		body.mirror = false;
    		leg1 = new ModelRenderer(0, 19);
    		leg1.addBox(-2F, 0F, -2F, 4, 9, 4, 0F);
    		leg1.setRotationPoint(-3F, 14.6F, 5F);
    		leg1.rotateAngleX = 0F;
    		leg1.rotateAngleY = 0F;
    		leg1.rotateAngleZ = 0F;
    		leg1.mirror = false;
    		leg2 = new ModelRenderer(0, 19);
    		leg2.addBox(-2F, 0F, -2F, 4, 9, 4, 0F);
    		leg2.setRotationPoint(3F, 14.46667F, 5F);
    		leg2.rotateAngleX = 0F;
    		leg2.rotateAngleY = 0F;
    		leg2.rotateAngleZ = 0F;
    		leg2.mirror = false;
    		leg3 = new ModelRenderer(0, 10);
    		leg3.addBox(-2F, 18F, -2F, 4, 18, 4, 0F);
    		leg3.setRotationPoint(-6F, -12F, -6F);
    		leg3.rotateAngleX = 0F;
    		leg3.rotateAngleY = 0F;
    		leg3.rotateAngleZ = 0F;
    		leg3.mirror = false;
    		leg4 = new ModelRenderer(0, 10);
    		leg4.addBox(-2F, 0F, -2F, 4, 18, 4, 0F);
    		leg4.setRotationPoint(6F, 6F, -6F);
    		leg4.rotateAngleX = 0F;
    		leg4.rotateAngleY = 0F;
    		leg4.rotateAngleZ = 0F;
    		leg4.mirror = false;
    	}
    	
    	public void render(float f, float f1, float f2, float f3, float f4, float f5)
    	{
    		super.render(f, f1, f2, f3, f4, f5);
    		setRotationAngles(f, f1, f2, f3, f4, f5);
    		head.render(f5);
    		body.render(f5);
    		leg1.render(f5);
    		leg2.render(f5);
    		leg3.render(f5);
    		leg4.render(f5);
    	}
    	
    	public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
    	{
    		super.setRotationAngles(f, f1, f2, f3, f4, f5);
    	}
    	
    	//fields
    	public ModelRenderer head;
    	public ModelRenderer body;
    	public ModelRenderer leg1;
    	public ModelRenderer leg2;
    	public ModelRenderer leg3;
    	public ModelRenderer leg4;
    }

    There is a picture in \mob\test. Please help! Reward will be a :chestfront: full of :Diamond:

    Thanks! :iapprove: :iapprove:
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Quote from Jack_The_Miner

    One thing, I think it should be:
    itemMeat.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/meat.png");
    instead of:
    itemPatty.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/meat.png");

    Also, do you have an "ItemMeat.java" file?

    Changed but still not working :sad.gif:
    My ItemMeat.java:
    package net.minecraft.src;
    
    public class ItemMeat extends Item
    {
    	private int healAmount;
    	
    	public ItemMeat (int i)
    	{
    		super (i);
    		maxStackSize = 1;
    		healAmount=8;
    		
    	}
    	public int gethealAmount()
    	{
    		return healAmount;
    	}
    	public ItemStack onItemRightClick(ItemStack itemstack, World world,EntityPlayer entityplayer)
    	{
    		itemstack.stackSize--;
    		entityplayer.heal(healAmount);
    		return itemstack;
    	}
    }

    Please help, reward will be :Diamond: :Diamond: :Diamond:
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Help i get this error when i recompile:
    == MCP v4.3 ==
    > Recompiling client...
    "C:\Program Files\Java\jdk1.7.0\bin\javac.exe" -g -verbose -classpath "lib/;lib/
    *;jars/bin/minecraft.jar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_u
    til.jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft\net\minecraft\
    client\*.java src/minecraft\net\minecraft\isom\*.java src/minecraft\net\minecraf
    t\src\*.java  conf/patches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    src\minecraft\net\minecraft\src\mod_foods.java:15: error: cannot find symbol
    "*","X","*", Character.valueOf('*'), Item.bread, Character.valueOf('X'), Item.meat
    ^
    
    symbol:   variable meat
    location: class Item
    1 error
    ==================
    
    > Done in 9.30 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .

    my mod_food.java:
    package net.minecraft.src;
    
    public class mod_food extends BaseMod
    {
    	public static final Item itemMeat = new ItemMeat(2011).setItemName"meat");
    	public static final Item itemBurger = new ItemBurger(2013).setItemName("burger");
    	
    {
    ModLoader.AddName(itemMeat, "Meat");
    ModLoader.AddName(itemBurger, "Burger");
    ModLoader.AddRecipe(new ItemStack(itemMeat,1), new Object[]{
    	"**", Character.valueOf('*'), Item.porkRaw
    });
    ModLoader.AddRecipe(new ItemStack(itemBurger,1), new Object[]{
    	"*","X","*", Character.valueOf('*'), Item.bread, Character.valueOf('X'), Item.meat
    });
    itemPatty.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/meat.png");
    itemBurger.iconIndex = ModLoader.addOverride("/gui/items.png", "/food/burger.png");
    }
    public String Version()
    {
    		return "minecraft";
    }
    };
    Posted in: Tutorials
  • 0

    posted a message on [1.8.1] CombatReloaded v1.2-More Weapons, More Food, More Mobs, More Fun![Help Needed!]
    You, sir has just won yourself some :Diamond: :Diamond: :Diamond: :Diamond: :Diamond: :Diamond:
    Posted in: Minecraft Mods
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Quote from Guff

    I'm going to need more than that.


    Ignore the first question on the bacon i figured that out already.

    But still do you know how to increase the weapon's range like instead of being able to hit monsters from 3 blocks can you make it 5?
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    I was just wondering if you could make a recipe with bacon if you could then what must it be called?
    Example:
    ModLoader.AddRecipe(new ItemStack(itemSaussage,1), new Object[]{
    			"**", Character.valueOf("*"), ???


    and also is there any way to change the range of a weapon?
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Quote from TheMajester

    What is the error?
    Try changing the name of the
    public static final Block PlatiniumOre

    to
    public static final Block platiniumOre



    Oh man that actually works
    Thanks!
    Here is your reward: :Diamond: :Diamond: :Diamond: :Diamond: :Diamond:
    Posted in: Tutorials
  • To post a comment, please .