Changed some stuff with darts

This commit is contained in:
Matt Caughey 2013-05-08 08:39:12 -04:00
parent 98af2e8a6e
commit b71d1b2df1
2 changed files with 6 additions and 3 deletions

View file

@ -18,7 +18,7 @@ public class ItemDartBlower extends Item
{
super(par1);
this.maxStackSize = 1;
this.setMaxDamage(192);
this.setMaxDamage(63);
setCreativeTab(BiomesOPlenty.tabBiomesOPlenty);
setUnlocalizedName("dartblower");
}
@ -35,7 +35,7 @@ public class ItemDartBlower extends Item
if (flag || par3EntityPlayer.inventory.hasItem(Items.dart.get().itemID))
{
EntityArrow entitydart = new EntityArrow(par2World, par3EntityPlayer, 2.0F);
// EntityDart entitydart = new EntityDart(par2World, par3EntityPlayer, 2.0F);
//EntityDart entitydart = new EntityDart(par2World, par3EntityPlayer, 2.0F);
itemStack.damageItem(1, par3EntityPlayer);
par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 1.0F, 2.0F / (1.0F * 0.4F + 1.2F) + 1.0F * 0.5F);

View file

@ -11,6 +11,8 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.network.packet.Packet70GameEvent;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MathHelper;
@ -184,6 +186,7 @@ public class EntityDart extends EntityArrow
if (this.isBurning() && !(movingobjectposition.entityHit instanceof EntityEnderman))
{
movingobjectposition.entityHit.setFire(5);
//movingobjectposition.entityHit.addPotionEffect(new PotionEffect(Potion.poison.id, 100));
}
if (movingobjectposition.entityHit.attackEntityFrom(damagesource, i1))
@ -282,7 +285,7 @@ public class EntityDart extends EntityArrow
this.motionZ *= (double)f4;
this.motionY -= (double)f1;
this.setPosition(this.posX, this.posY, this.posZ);
this.doBlockCollisions();
//this.doBlockCollisions();
}
}