• 0

    posted a message on Really need help with GUI's *sigh*
    Quote from keao

    Im working on a similar thing, if i get it working ill let you know how and post a quick tutorial.


    Have you made the tut?
    If yes can u plz give me a link i've searched for a tutorial like that for 1 month
    Posted in: Mods Discussion
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    Quote from MrLimey

    Hey no problem man!
    Im here to help! :laugh.gif:


    can you help me then plz?

    look at my post (4 posts up)

    Ty
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    Can someone plz help?
    I need help to do that a monster changes to another monster(like entity1 changes to entity2) when it becomes daytime

    I also need help on how to put a name above your mob (like in beta 1.9 the villagers had a name above their head: Certificated...)

    Ty in advance
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    Quote from Serrots

    What do I replace that with?


    replace:
    EntityCow cow = new EntityCow(world);
    cow.setPosition(entityplayer.posX, entityplayer.posY, entityplayer.posX);
    world.entityJoinedWorld(cow);

    with:
    Entitycow entitycow = new EntityCow(worldObj);
    entitycow.setLocationAndAngles(posX, posY + 0.5D, posZ, rand.nextFloat() * 360F, 0.0F);
    worldObj.spawnEntityInWorld(entitycow);
    Posted in: Tutorials
  • 0

    posted a message on [11/15/11]Builder4Free's Advanced ModdingTutorials[Any Version]
    Quote from TwoGunnedPanda

    How To Make A Advanced Mob

    By TwoGunnedPanda ! Builder4Free Is The Guy That Made me modder, Use These tutorials..

    & Advanced Mob!!


    EntityMagma

    package net.minecraft.src;
    
    public class EntityMagma extends EntityCreature
    {
    
    	public EntityMagma(World world)
    	{
    		 super(world);
    		 texture = "/mob/LOL.png";
                     moveSpeed = 0.5F;
                     isImmuneToFire = false;
                     npcName = "Magma Dude";
    	}
    
    	protected int getDropItemId()
    	{
    		return Item.swordStone.shiftedIndex;
    	}
        public boolean canBreatheUnderwater()
        {
                    return false;
        }
        protected boolean canDespawn()
        {
                    return false;
        }
        public boolean interact(EntityPlayer entityplayer) 
        {
                    entityplayer.addChatMessage("<"+this.getEntityString()+"> Ima Firin' Ma Lazor !!!");
                    return true;
        }
        public void onEntityDeath()
        {
        }
        public ItemStack getHeldItem()
        {
            return defaultHeldItem;
        }
        private static final ItemStack defaultHeldItem;
    	
    	static 
        {
            defaultHeldItem = new ItemStack(Item.swordStone, 1);
        }
    	public String npcName;
    }


    mod_Magma

    package net.minecraft.src; 
     
    import java.lang.reflect.Method; 
    import java.util.Map; 
     
    public class mod_Magma extends BaseMod 
    { 
    
        public mod_Magma() 
        { 
            ModLoader.RegisterEntityID(EntityMagma.class, "Magma warrior", ModLoader.getUniqueEntityId()); 
            ModLoader.AddSpawn(EntityMagma.class, 8, 4, 10, EnumCreatureType.creature); 
        } 
        public void AddRenderer(Map map) 
        { 
            map.put(EntityMagma.class, new RenderMagma(new ModelBiped(), 0.5F)); 
        } 
         public String Version() 
        { 
            return "1.8.1"; 
        } 
    }


    RenderMagma

    package net.minecraft.src;
    
    import org.lwjgl.opengl.GL11;
    
    public class RenderMagma extends RenderLiving
    {
    
        public RenderMagma(ModelBiped modelbase, float f)
        {
            super(modelbase, f);
        }
    
        public void renderMagmaA(EntityMagma entity, double d, double d1, double d2, float f, float f1)
        {
            super.doRenderLiving(entity, d, d1, d2, f, f1);
    		
            if(entity.npcName.length() > 0 && entity.npcName != "")
            {
                renderLivingLabel(entity, entity.npcName, d, d1, d2, 64);
            }    
        }
        public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
        {
            super.doRenderLiving((EntityMagma) entityliving, d, d1, d2, f, f1);
        }
    
        public void doRender(Entity entity, double d, double d1, double d2, float f, float f1)
        {
            renderMagamaA((EntityMagma)entity, d, d1, d2, f, f1);
        }
        
         
        protected void preRenderScale(EntityMagma entity, float f)
        {
            GL11.glScalef(1.0F, 1.0F, 1.0F);
        }
    
        protected void preRenderCallback(EntityLiving entityliving, float f)
        {
            preRenderScale((EntityMagma)entityliving, f);
        }
    }


    ===If you want It to Speak on Right Click===



    Here is one Way. You add these To your EntityMagma.java File :3
            public boolean interact(EntityPlayer entityplayer) 
            {
                    entityplayer.addChatMessage("<"+this.getEntityString()+"> Ima Firin' Ma Lazor !!!");
                    return true;
            }

    And here is another way !
    public boolean interact(EntityPlayer entityplayer)
            {
    		    ModLoader.getMinecraftInstance().thePlayer.addChatMessage("I love Minecraft :3");
                return true;
            }


    ===If you want a Name above head in-game===



    First in your entityMagma, Where it says
    public EntityMagma(World world)
    	{
    		 super(world);
    		 texture = "/mob/char.png";
             moveSpeed = 0.5F;
             isImmuneToFire = false;
    	}

    Add " npcName = "Magma Dude"; " to there so it will then look like :

    public EntityMagma(World world)
    	{
    		 super(world);
    		 texture = "/mob/char.png";
             moveSpeed = 0.5F;
             isImmuneToFire = false;
             npcName = "Magma Dude";
    	}


    And add this at the bottom Like it shows Above in the Mob Human tutorial. You can just copy those, They have everything already.

    The code :
    public String npcName;


    Then In the class called RenderMagma.java ad this.

    public void renderMagmaA(EntityMagma entity, double d, double d1, double d2, float f, float f1)
        {
            super.doRenderLiving(entity, d, d1, d2, f, f1);
    		
            if(entity.npcName.length() > 0 && entity.npcName != "")
            {
                renderLivingLabel(entity, entity.npcName, d, d1, d2, 64);
            }    
        }



    FINISHED PROJECT !

    Name above Head !

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Talking On right click !



    IF THIS HAS ANY ERROR'S MESSAGE ME !! I WILL FIX THEM..


    Nice Ty but plz fix this:

    In minecraft 1.1
    npcName = "Magma Dude";
    doesn't work

    it underlines:
    npcName
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    Can someone help me cause I still need help:

    My mob spawn at day, and I want it to become another mob (I made) at night so here's my code

    public void onLivingUpdate()
        {
            if (worldObj.isDaytime() && !worldObj.multiplayerWorld)
            {
                float f = getEntityBrightness(1.0F);
                if (f < 0.5F)
                {
                    //I Think it need a code here so it transforms to my other entity
                }
            }
            super.onLivingUpdate();
        }

    Can someone plz help?

    I would be verry grateful if you did!

    Ty in advance
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    Hey guys!

    I would be very grateful if someone could help me with this:

    At day i have a mob(that is not on fire), not aggressive unless you attack(like pigzombies or spider)
    =
    I have managed that but now comes the tricky part:

    At night the first mob, changes texture pack or it becomes another entity that is agressive
    but when it becomes day again it changes back.


    If you couldn't understand my idea then reply
    or if you can help me, plz do it!
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    Quote from x2robbie2x

    You can't decompile Audio Mod inside of eclipse, it's something you add after reobfuscating.


    Ok ty, good to know :biggrin.gif:
    But could you still make a tutorial on how to add your own sounds?
    Ty in advance

    Oh and thank you for the reply :smile.gif:
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    x2Robbie2x

    Can you please make a tutorial, on how to add your own sound to Minecraft (with AudioMod). I've searched on the Internet but I can't find it. I even tryied myself but after installed ModLoader and AudioMod and I decompile it gives me 42 errors about the AudioMod classes.
    I would really appreciate if you could make only a fast one and just explain the important thing to add sounds

    Please answer this post.

    Ty in advance.
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    Quote from Yvei

    Not positive on this but everyone seems to have the same problem on flowers were the grey block appears. What i figured and i think will work is if you switch image to the top so like my code looks like this.

    public mod_Bluetulip()
    {
    Bluetulip.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Bluetulip.png");
    ModLoader.RegisterBlock(Bluetulip);
    ModLoader.AddName(Bluetulip, 	"Blue Tulip");
    }


    so what i am guessing its the same as the flower with the sappling so you gotta move the image above RegisterBlock so if that helps let me know if not then hopefully u figure it out soon.



    It worked for me!
    Ty verry much
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    x2Robbie2x I tried to watch the tutorials u gave for the Gui but i can't find what i'm searching for :sad.gif:

    Could you plz make a tutorial where you show us how to make our own type of Container
    (What i mean is a block that when you right click it => it open a GUI where you can store things (like a chest))

    I tried myself for 2 hours and the one thing i couldn't solve was:
    how to chose the place (on my own GUI picture) where i can store things
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    Suggestion:

    Instead of that amulet that spawn the blockium monster consumes the staff
    Can you make a tutorial on how to make it consume another item

    ex: Like a "Staff" that when you right click shots a "fireball" and consumes a "fire rune"
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    Hey i got a problem:
    When i did what u did to the entity (the code for it to hold a sword), it didn't work for me.
    So i tried the same way as the pigmen but it didn't work either!

    well i get no errors but my entity doesn't hold a sword in his hand and that annoys me

    this is what i got now

    package net.minecraft.src;
    import java.util.List;
    import java.util.Random;
    
    public class EntityTitaniumGolem extends EntityMob
    {
        private int angerLevel;
    	Random rand = new Random();
    	public int rare;
        private static final ItemStack defaultHeldItem;
    	
        public EntityTitaniumGolem(World world)
        {
            super(world);
            angerLevel = 0;
            texture = "/Titanium/TitaniumGolem.png";
            moveSpeed = 0.7F;
            attackStrength = 6;
            isImmuneToFire = true;
        }
        
        public int getMaxHealth()
        {
        	return 20;
        }
        
        protected Entity findPlayerToAttack()
        {
            if(angerLevel == 0)
            {
                return null;
            } else
            {
                return super.findPlayerToAttack();
            }
        }
        
        public void onLivingUpdate()
        {
            if(worldObj.isDaytime() && !worldObj.multiplayerWorld)
            {
                float f = getEntityBrightness(1.0F);
                if(f > 0.5F && worldObj.canBlockSeeTheSky(MathHelper.floor_double(posX), MathHelper.floor_double(posY), MathHelper.floor_double(posZ)) && rand.nextFloat() * 30F < (f - 0.4F) * 2.0F)
                {
                    //setFire(8);
                }
            }
            super.onLivingUpdate();
        }
        
        public boolean attackEntityFrom(DamageSource damagesource, int i)
        {
            Entity entity = damagesource.getEntity();
            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 EntityTitaniumGolem)
                    {
                        EntityTitaniumGolem entitytitaniumgolem = (EntityTitaniumGolem)entity1;
                        entitytitaniumgolem.becomeAngryAt(entity);
                    }
                }
    
                becomeAngryAt(entity);
            }
            return super.attackEntityFrom(damagesource, i);
        }
    
        private void becomeAngryAt(Entity entity)
        {
            entityToAttack = entity;
            angerLevel = 400 + rand.nextInt(400);
        }
        
        protected int getDropItemId()
        {
            //return mod_Titanium.titaniumingot.shiftedIndex;
        	rare = rand.nextInt(5);
        	if(rare == 0)
        		return mod_Titanium.titaniumsword.shiftedIndex;
        	if(rare == 1)
        		return mod_Titanium.titaniumseadrink.shiftedIndex;
        	else
        		return mod_Titanium.titaniumingot.shiftedIndex;
        }
        
        protected String getLivingSound()
        {
            return "mob.ghast.moan";
        }
    
        protected String getHurtSound()
        {
            return "mob.silverfish.hit";
        }
    
        protected String getDeathSound()
        {
        	return "mob.zombiedeath";
        }
        
        public ItemStack getHeldItem()
        {
            return defaultHeldItem;
        }
    
        static 
        {
            defaultHeldItem = new ItemStack(mod_Titanium.titaniumsword, 1);
        }
    }

    Hope you can help me

    Ty in advance
    Posted in: Tutorials
  • 0

    posted a message on Minecraft Modding Made Easy (40+ Videos!)
    AMAZING TUTORIALS!!!
    Love you for that.

    I have a suggestion: Can you make the mobs more advanced cause you can see them hold a weapon but he doesn't attack with it :/
    Can you try that plz?

    Ty in advance...

    Oh and like I said love you tutorials!
    Posted in: Tutorials
  • To post a comment, please .