Jump to content

yorri

Members
  • Posts

    23
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

yorri's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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. 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.
  12. 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/
  13. 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 )
×
×
  • Create New...

Important Information

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