Jump to content

yorri

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by yorri

  1. Yes!!! I knew about this problem (as in contact with it) but somehow forgot. Thank you very much! It works!
  2. Hmm... When I looked carefully in launched game I see that all my custom blocks have ID less 256. I checked it out int a1=Block.getIdFromBlock(mod_MicroUkr.blockBlack); System.out.println( "blockBlack id " + a1); ... but this not help me
  3. I make it in public void preInit(FMLPreInitializationEvent event) All me blocks and items work fine. I am interesting how add my custon blocks (with Forge1.7.2) to generate.
  4. When I change this.topBlock and this.fillerBlock to standart block - all work fine. I see this blocks. But when I use my custom blocks - I see only the blocks that have to be under my blocks. My blocks I not see.
  5. I created new dimension and want make in it custom biome. But when I use custom blocks it do not work (nothing generate instead of my blocks), but with standart blocks all work fine. In old version use blocks with ID <256. In 1.7.2 ID is no. How make this with 1.7.2?
  6. I decided to ignore the spears in my body. I spent too much time on it. Sorry for the trouble.
  7. Thanks! It Help me! I make this in 3D. [sOLVED]
  8. How change item position/angles/scale in hand in first person view or third person view
  9. I found it before. But for me, too hard to do it. I can only turn off render the spear in Entity (Update method) if (movingobjectposition.entityHit.attackEntityFrom(damagesource, (float)k)) { if (movingobjectposition.entityHit instanceof EntityLivingBase) { EntityLivingBase entitylivingbase = (EntityLivingBase)movingobjectposition.entityHit; if (!this.worldObj.isRemote) { // entitylivingbase.setArrowCountInEntity(entitylivingbase.getArrowCountInEntity() + 1); } if (this.knockbackStrength > 0) { f4 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ); if (f4 > 0.0F) { movingobjectposition.entityHit.addVelocity(this.motionX * (double)this.knockbackStrength * 0.6000000238418579D / (double)f4, 0.1D, this.motionZ * (double)this.knockbackStrength * 0.6000000238418579D / (double)f4); } } if (this.shootingEntity != null && this.shootingEntity instanceof EntityLivingBase) { EnchantmentHelper.func_151384_a(entitylivingbase, this.shootingEntity); EnchantmentHelper.func_151385_b((EntityLivingBase)this.shootingEntity, entitylivingbase); } if (this.shootingEntity != null && movingobjectposition.entityHit != this.shootingEntity && movingobjectposition.entityHit instanceof EntityPlayer && this.shootingEntity instanceof EntityPlayerMP) { ((EntityPlayerMP)this.shootingEntity).playerNetServerHandler.sendPacket(new S2BPacketChangeGameState(6, 0.0F)); } } or through event RenderPlayerEvent.Specials.Pre private EntityVyla bb; private EntityArrow cc; @SubscribeEvent public void onRenderPlayer(RenderPlayerEvent.Pre e) { if (!e.entityPlayer.hitByEntity(bb)) { e.entityPlayer.setArrowCountInEntity(0); } }
  10. Yes. My spear work. I have only one problem: when i hit himself I see ARROW in players body but not SPEAR
  11. up
  12. this.setPosition(this.posX, this.posY+1, this.posZ); SOLVED Sorry, but I have another problem. When I hit a spear in myself :-), then if look from the side, instead of spears - arrow. In entity arrow and in Render I find nothing. But in RenderPlayer I find renderEquippedItems function that call another interesting function super.renderArrowsStuckInEntity (par1AbstractClientPlayer, par2) I try override this. But nothing. Tell me where to look or how to make it. Thanks.
  13. I created something like spear. Item Entity But I have some problem. When I am at Cretive mode I can throw a spear and I see my spear in the fly. But when I am at Game mode, when I throw a spear I get at once hit (4 hearts) and I not see my spear in the fly... I not understand this. Maybe problem in onCollideWithPlayer or in other place?... Thanks. /sorry for my english/
  14. Sorry. I detect my error. In the EntityBullet class in constructor. Must be public EntityBullet(World par1world, EntityPlayer par3EntityPlayer) { super(par1world,[b]par3EntityPlayer[/b]); } I lost par3EntityPlayer. (I created other similar item and entity and saw this error. I guess that the error is in my code. Sorry again for the trouble )
  15. May be I am wrong registering in main class?
  16. Nothing
  17. Nothing... I can not understand why does not work? I see this and made something like this. But it not work...
  18. I make a Gun This is Gun When I Right Click I create Bullet. This is EntityBullet In the console I see "from pistol onItemRightClick" and "constructor1" but I not see "on impact"... /sorry for my english/
  19. Someone decided this question?
  20. sorry. I am stupid modder. I find error. All works fine.
  21. Sorry, I find one error in my import code part: instead "import net.minecraft.entity.Entity" Eclipse insert "import com.sun.xml.internal.stream.Entity" But now I have next: () Black cube :-/. I try to use image from other mod but result the same.
  22. I have similar problem - helmet renders on model as Iron. I see this http://www.minecraftforge.net/forum/index.php/topic,16186.0.html But it not work for me. [spoiler=Main] @Mod(modid=mod_MicroUkr.MODID, name=mod_MicroUkr.NAME, version=mod_MicroUkr.VERSION) public class mod_MicroUkr { public static final String MODID = "microukr"; public static final String NAME = "MicroUkr"; public static final String VERSION = "0.1F"; public static ArmorMaterial UKR = EnumHelper.addArmorMaterial("ukr", 1000, new int[] {2, 6, 4, 2}, 9); public static ItemArmor helmetUkr; ... public void preInit(FMLPreInitializationEvent event) { helmetUkr = (ItemArmor) new HelmetUkr(mod_MicroUkr.UKR, 0, 0); GameRegistry.registerItem(helmetUkr, helmetUkr.getUnlocalizedName().substring(5)); GameRegistry.addRecipe(new ItemStack(helmetUkr, 1), new Object[] {"###", "# #", '#', new ItemStack(blockUkrainium)}); } ... [spoiler=HelmetUkr] public class HelmetUkr extends ItemArmor { public HelmetUkr(ArmorMaterial par1, int par2, int par3) { super(par1, par2, par3); this.setCreativeTab(mod_MicroUkr.tabMicroUkr); this.setUnlocalizedName("helmetUkr"); } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister par1IconRegister) { this.itemIcon = par1IconRegister.registerIcon(mod_MicroUkr.MODID + ":helmetUkr"); } @SideOnly(Side.CLIENT) public String getArmorTexture (ItemStack itemstack, Entity entity, int slot, String type) { return "mod_MicroUkr:textures/models/armor/ukr_1.png"; } Path to png file "D:\MCModdingForge\src\main\resources\assets\microukr\textures\models\armor" /sorry for my english/
×
×
  • Create New...

Important Information

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