From b71d1b2df14d4315255d54dc68743cdb6640ca4d Mon Sep 17 00:00:00 2001 From: Matt Caughey Date: Wed, 8 May 2013 08:39:12 -0400 Subject: [PATCH] Changed some stuff with darts --- src/minecraft/biomesoplenty/items/ItemDartBlower.java | 4 ++-- .../biomesoplenty/items/projectiles/EntityDart.java | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/minecraft/biomesoplenty/items/ItemDartBlower.java b/src/minecraft/biomesoplenty/items/ItemDartBlower.java index 95b8e734a..7e8917394 100644 --- a/src/minecraft/biomesoplenty/items/ItemDartBlower.java +++ b/src/minecraft/biomesoplenty/items/ItemDartBlower.java @@ -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); diff --git a/src/minecraft/biomesoplenty/items/projectiles/EntityDart.java b/src/minecraft/biomesoplenty/items/projectiles/EntityDart.java index ea731d618..993898a73 100644 --- a/src/minecraft/biomesoplenty/items/projectiles/EntityDart.java +++ b/src/minecraft/biomesoplenty/items/projectiles/EntityDart.java @@ -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(); } }