Posted May 16, 201411 yr Now , i want to make sword that have damage , and that damage is NBT sensetive ( like TC swords ) , soo i want to make custom damage.Beacos item dont have sort of "getDamageVSEntity" (or actyally have , but its deprecated) , so i'm using hitEntity .Now , how do i actually attack entity here?
May 16, 201411 yr Author did make it in my "own way": public static DamageSource getDamageSourceForEntity(EntityLivingBase ent) { if (ent instanceof EntityPlayer) return DamageSource.causePlayerDamage((EntityPlayer)ent); else return DamageSource.causeMobDamage(ent); }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.