ZidMC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Unanswered] Help -- Cars Mod Please answer this!!!!!!

4 posters

Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by madcrazydrumma Sun May 01, 2011 9:20 am

Hey guys...
sorry for posting this in the wrong area its just no-one would bloody even talk or help me on it... -.-

so i am reposting it here (soz ziddia i really need help)...

so how can i make a cars mod?!?!?!

madcrazydrumma
ZidMC Coder
ZidMC Coder

Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai

Back to top Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by Will.Ez Sun May 01, 2011 9:34 am

mess up with other transportation mods Very Happy
Sorry i dont know how too, never been doing an entity
Will.Ez
Will.Ez
Iron Miner

Posts : 52
Join date : 2011-04-22
Age : 27

Back to top Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by Meglazero Sun May 01, 2011 10:25 am

^ wut he sed

Yeah, I have no ideas on entities earlier... best bet would be to look at planes or the atv mods... or just look at the boats coding and try to alter that

Meglazero
Iron Miner

Posts : 51
Join date : 2011-04-22

Back to top Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by madcrazydrumma Sun May 01, 2011 10:38 am

Yeh thanks but how can i get the code for the boats and the planes?

madcrazydrumma
ZidMC Coder
ZidMC Coder

Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai

Back to top Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by Ziddia Sun May 01, 2011 10:42 am

Boats are easy, look through ItemBoat in the official code.

Ziddia
Admin
Admin

Posts : 168
Join date : 2011-04-22

https://zidmc.forumotion.com

Back to top Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by madcrazydrumma Sun May 01, 2011 10:48 am

Ok and so i will have to edit which classes?

ItemBoat
RenderBoat
ModelBoat
EntityBoat

and what else?? what do i add and what do i even do to make it a car??

and also with this is mind...

i need help with my mcdMobs mod...

i have an error with my first mob...

here is the error :
Code:


MCP 2.12 running in /Users/madcrazydrumma/Desktop/mcp212_test1
Compiling Minecraft
sources/minecraft/net/minecraft/src/mod_Warthog.java:12: cannot find symbol
symbol  : variable Modloader
location: class net.minecraft.src.mod_Warthog
Modloader.getUniqueEntityID());
^
sources/minecraft/net/minecraft/src/mod_Warthog.java:20: cannot find symbol
symbol  : constructor RenderWarthog(net.minecraft.src.ModelWarthog,float)
location: class net.minecraft.src.RenderWarthog
      map.put(EntityWarthog.class, new RenderWarthog(new ModelWarthog(),
                                  ^
2 errors

and here is my RenderWarthog :
Code:


package net.minecraft.src;

public class RenderWarthog extends RenderLiving
{

    public RenderWarthog(ModelBase modelbase, ModelBase modelbase1, float f)
    {
        super(modelbase, f);
        setRenderPassModel(modelbase1);
    }

    protected boolean renderSaddledPig(EntityWarthog entitywarthog, int i, float f)
    {
        loadTexture("/mob/saddle.png");
        return i == 0 && entitywarthog.getSaddled();
    }

    protected boolean shouldRenderPass(EntityLiving entityliving, int i, float f)
    {
        return renderSaddledPig((EntityWarthog)entityliving, i, f);
    }
}

and here is my mod_Warthog :
Code:


package net.minecraft.src;

public class EntityWarthog extends EntityAnimal
{

    public EntityWarthog(World world)
    {
        super(world);
        texture = "/mob/warthog.png";
        setSize(0.9F, 0.9F);
    }

    protected void entityInit()
    {
        dataWatcher.addObject(16, Byte.valueOf((byte)0));
    }

    public void writeEntityToNBT(NBTTagCompound nbttagcompound)
    {
        super.writeEntityToNBT(nbttagcompound);
        nbttagcompound.setBoolean("Saddle", getSaddled());
    }

    public void readEntityFromNBT(NBTTagCompound nbttagcompound)
    {
        super.readEntityFromNBT(nbttagcompound);
        setSaddled(nbttagcompound.getBoolean("Saddle"));
    }

    protected String getLivingSound()
    {
        return "mob.pig";
    }

    protected String getHurtSound()
    {
        return "mob.pig";
    }

    protected String getDeathSound()
    {
        return "mob.pigdeath";
    }

    public boolean interact(EntityPlayer entityplayer)
    {
        if(getSaddled() && !worldObj.multiplayerWorld && (riddenByEntity == null || riddenByEntity == entityplayer))
        {
            entityplayer.mountEntity(this);
            return true;
        } else
        {
            return false;
        }
    }

    protected int getDropItemId()
    {
        if(fire > 0)
        {
            return Item.porkCooked.shiftedIndex;
        } else
        {
            return Item.porkRaw.shiftedIndex;
        }
    }

    public boolean getSaddled()
    {
        return (dataWatcher.getWatchableObjectByte(16) & 1) != 0;
    }

    public void setSaddled(boolean flag)
    {
        if(flag)
        {
            dataWatcher.updateObject(16, Byte.valueOf((byte)1));
        } else
        {
            dataWatcher.updateObject(16, Byte.valueOf((byte)0));
        }
    }

    public void func_27014_a(EntityLightningBolt entitylightningbolt)
    {
        EntityWarthog entitywarthog = new EntityWarthog(worldObj);
        entitywarthog.setLocationAndAngles(posX, posY, posZ, rotationYaw, rotationPitch);
        worldObj.entityJoinedWorld(entitywarthog);
        setEntityDead();
    }

    protected void fall(float f)
    {
        super.fall(f);
        if(f > 5F && (riddenByEntity instanceof EntityPlayer))
        {
            ((EntityPlayer)riddenByEntity).func_27026_a(AchievementList.field_27375_u);
        }
    }
}


Please help on both these topics :L

madcrazydrumma
ZidMC Coder
ZidMC Coder

Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai

Back to top Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by Ziddia Sun May 01, 2011 10:51 am

To make a car, you make the RenderCar, ItemCar, etc, then just copypaste the code over and make it so it drives on land.

Ziddia
Admin
Admin

Posts : 168
Join date : 2011-04-22

https://zidmc.forumotion.com

Back to top Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by madcrazydrumma Sun May 01, 2011 11:14 am

and for my warthog mod?? can u help me fix that?
i dont know what is wrong

madcrazydrumma
ZidMC Coder
ZidMC Coder

Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai

Back to top Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by madcrazydrumma Sun May 01, 2011 12:07 pm

And how exactly would i get the code or make the render and itemCars ??

please help :L and also with my warthog mob posted above... Very Happy

madcrazydrumma
ZidMC Coder
ZidMC Coder

Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai

Back to top Go down

[Unanswered] Help -- Cars Mod Please answer this!!!!!! Empty Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum