[Unanswered] Help -- Cars Mod Please answer this!!!!!!
4 posters
Page 1 of 1
[Unanswered] Help -- Cars Mod Please answer this!!!!!!
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?!?!?!
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
- Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai
Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!
mess up with other transportation mods
Sorry i dont know how too, never been doing an entity
Sorry i dont know how too, never been doing an entity
Will.Ez- Iron Miner
- Posts : 52
Join date : 2011-04-22
Age : 27
Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!
^ 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
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
Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!
Yeh thanks but how can i get the code for the boats and the planes?
madcrazydrumma- ZidMC Coder
- Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai
Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!
Boats are easy, look through ItemBoat in the official code.
Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!
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 :
and here is my RenderWarthog :
and here is my mod_Warthog :
Please help on both these topics :L
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
- Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai
Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!
To make a car, you make the RenderCar, ItemCar, etc, then just copypaste the code over and make it so it drives on land.
Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!
and for my warthog mod?? can u help me fix that?
i dont know what is wrong
i dont know what is wrong
madcrazydrumma- ZidMC Coder
- Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai
Re: [Unanswered] Help -- Cars Mod Please answer this!!!!!!
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...
please help :L and also with my warthog mob posted above...
madcrazydrumma- ZidMC Coder
- Posts : 61
Join date : 2011-04-22
Age : 27
Location : Dubai
Similar topics
» [NEED HELP URGENT]Cars Mod -- please help
» [Unanswered]NullPointerException[2.12][1.5_01]
» [Unanswered]Please a tutorial for this
» [UNANSWERED] How can I fix this?
» [Unanswered]Please help!
» [Unanswered]NullPointerException[2.12][1.5_01]
» [Unanswered]Please a tutorial for this
» [UNANSWERED] How can I fix this?
» [Unanswered]Please help!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|