Implemented dispenser behavior for firing arrows.

This commit is contained in:
Max Teegen committed 2013-09-27 18:29:20 +02:00
1 parent abdd27c235
commit d83785ada6
3 files changed
+56

No files matched your search

@@ -52,6 +52,15 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
this.baseDamage = toolTag.getInteger("Attack");
}
public ArrowEntity(World world, double x, double y, double z, ItemStack stack)
{
super(world, x, y, z);
this.returnStack = stack;
NBTTagCompound toolTag = stack.getTagCompound().getCompoundTag("InfiTool");
this.mass = toolTag.getFloat("Mass");
this.baseDamage = toolTag.getInteger("Attack");
}
@Override
public void onCollideWithPlayer (EntityPlayer par1EntityPlayer)
{