Jump to content

DoorCloser

Members
  • Posts

    178
  • Joined

  • Last visited

Everything posted by DoorCloser

  1. Very important means its important for me... Not for others.
  2. I have solved the problem. All you need is just put that code in ModelName file: public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) { super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); this.forebody.rotateAngleY = f3 / (150F / (float)Math.PI); this.forebody.rotateAngleX = f4 / (150F / (float)Math.PI); this.forebody.rotateAngleZ = f5 / (150F / (float)Math.PI); P.S. You can change value of 150F on any you want, mess with that and you will get the result you want When you need to change the size of your mob, just put this in public EntityName(World par1World){ ; public EntityName(World par1World) { super(par1World); this.setSize(0.6F, 0.8F); - ( this ) Where 0.6F - height ; 0.8F - lenght.
  3. It has errors on targetentity and getLookHelper. It would be nice if you tell me where to put that code. THX
  4. Hey mates. I've came here with another question about modding. I'm basicly modding my own mod(mobs, dimensions, items, blocks etc.). I've made one mob and i wanted to make it say my own sounds. I've watched alot of tutorials. It was said to put code like that in EntityName of your mob: protected String getLivingSound() { return "mob.mymob.bip"; } protected String getHurtSound() { return "mob.mymob.hurt"; } protected String getDeathSound() { return "mob.mymob.death"; } So i've made that code, i only need to put sounds in folders. I tried to put them in [resources/sound3/mob/mymob]. Checked it out in the game...nothing works. I couldnt hear mymob make those sounds. I tried to put sounds in [resources/newsound/mob/mymob]. It didnt worked too! I also tried to convert them in .ogg format. Nothing changed! But when i try to set it like cow sounds, or chicken or enderman and etc. it works, but only with their sounds. I dont know what to do, maybe you know? P.S; I'm working with 1.5.2 version of minecraft. Please Help me! Thanks alot if you do.
  5. I see you havent read even 1/4 part of my post. "I've watched alot of tutorials"
  6. You didnt understand me. Issue is not in my code, i need advanced code to make my mob turn it's head. I explained that i'm doing my mob, you guys dont need actually anything to help me. But if it helps, i'll drop some coded: MyMod code part: public void load(FMLInitializationEvent event) { //the main loading EntityRegistry.registerGlobalEntityID(EntityHoundeye.class,"Houndeye", EntityRegistry.findGlobalUniqueEntityId(), 111738, 889345); RenderingRegistry.registerEntityRenderingHandler(EntityHoundeye.class, new RenderHoundeye(new ModelHoundeye(), 0.5F)); //rendering stuff EntityRegistry.registerModEntity(EntityHoundeye.class, "Houndeye", 1, this, 80, 3, true); EntityRegistry.addSpawn(doorcloser.modding.EntityHoundeye.class,20,3,8, EnumCreatureType.creature); My Model part of coding: public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) { super.setRotationAngles(f, f1, f2, f3, f4, f5, null); rightleg.rotateAngleX = MathHelper.cos(f * -0.5F) * 1.0F * f1; leftleg.rotateAngleX = MathHelper.cos(f * -0.5F) * 1.0F * f1; rightforeleg.rotateAngleX = MathHelper.cos(f * -0.5F) * 1.0F * f1; leftforeleg.rotateAngleX = MathHelper.cos(f * -0.5F) * 1.0F * f1; backleg2.rotateAngleX = MathHelper.cos(f * -0.5F) * 1.0F * f1; backleg.rotateAngleX = MathHelper.cos(f * -0.5F) * 1.0F * f1; body.rotateAngleX = MathHelper.cos(f * 0.4F) * 0.1F * f1; forebody.rotateAngleX = MathHelper.cos(f * 0.4F) * 0.2F * f1; eyes.rotateAngleX = MathHelper.cos(f * 0.4F) * 0.2F * f1; } }
  7. I really need your help guys. All mobs like cow, wolf, chicken, pig and etc. can turn their head on Player or on something else. But my own Mob cant do it. I actually dont know really how to make it to do it. I think that because of the Model. When i hit my mob a little upper, he lose his health, so he thinks that my mob is Steves size, but mine it actually isnt. It's rendered so it looks fine, but how to fix that issue?
  8. Check your code on that. public YourBlock(int par1, String texture) { super(par1, Material.rock); setCreativeTab(CreativeTabs.tabBlock); } public Icon getIcon(int par1, int par2) { return par1 == 1 ? this.field_94474_b : (par1 == 0 ? this.field_94474_b : (par2 == 2 && par1 == 2 ? this.field_94475_c : (par2 == 3 && par1 == 5 ? this.field_94475_c : (par2 == 0 && par1 == 3 ? this.field_94475_c : (par2 == 1 && par1 == 4 ? this.field_94475_c : this.blockIcon))))); } Also in the end of the code put these; public void registerIcons(IconRegister par1IconRegister) { this.blockIcon = par1IconRegister.registerIcon("youriconname"); this.field_94393_a = par1IconRegister.registerIcon("youriconname"); this.field_94392_b = par1IconRegister.registerIcon("youriconname"); this.field_94474_b = par1IconRegister.registerIcon("your[top]iconname"); this.field_94475_c = par1IconRegister.registerIcon(this.blockType ? "your[front]iconname" : "your[front]iconname"); } Mess up with the sides, i dont remember which. Put this code if you want to always put your block from specified side; public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack) { int var7 = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 2.5D) & 3; par1World.setBlockMetadataWithNotify(par2, par3, par4, var7, 2); } AND DONT FORGET ABOUT VARIABLES IN THE BEGGINING OF CODE. IT SHOULD LOOK LIKE THIS; public class YourBlock extends Block { private boolean blockType; private Icon field_94393_a; private Icon field_94392_b; private Icon field_94474_b; private Icon field_94475_c;
  9. Hey mates. I've came here with another question about modding. I'm basicly modding my own mod(mobs, dimensions, items, blocks etc.). I've made one mob and i wanted to make it say my own sounds. I've watched alot of tutorials. It was said to put code like that in EntityName of your mob: protected String getLivingSound() { return "mob.mymob.bip"; } protected String getHurtSound() { return "mob.mymob.hurt"; } protected String getDeathSound() { return "mob.mymob.death"; } So i've made that code, i only need to put sounds in folders. I tried to put them in [resources/sound3/mob/mymob]. Checked it out in the game...nothing works. I couldnt hear mymob make those sounds. I tried to put sounds in [resources/newsound/mob/mymob]. It didnt worked too! I also tried to convert them in .ogg format. Nothing changed! But when i try to set it like cow sounds, or chicken or enderman and etc. it works, but only with their sounds. I dont know what to do, maybe you know? P.S; I'm working with 1.5.2 version of minecraft. Please Help me! Thanks alot if you do.
  10. I'm working with 1.5.2 version of MC, no assets
  11. Hello guys. I have another noobish question in Minecraft Modding. I'm basicly creating my own mod. Adding my own mobs, ai, sounds. Ofcourse all that in eclipse. So i've decied to make my own mob with my own sounds. I downloaded sounds i needed and converted into .ogg format. I've writen inside my EntityName file this: protected String getLivingSound() { return "mob.mymob.bip"; } protected String getHurtSound() { return "mob.mymob.hurt"; } protected String getDeathSound() { return "mob.mymob.death"; } And i dont know where to put my own sounds. I tried to put them in [resources/sound3/mob/mymob]. It didnt worked in the game. I couldnt hear mymob make those sounds. I tried to put sounds in [resources/newsound/mob/mymob]. It didnt worked too! I dont know what to do, maybe you know? Please Help me! Thanks alot if you do.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.