for each(var entity in player.getEntitiesWithinRange(40))
{
if(entity.classType == "Arrow")
{
if(entity.isPlayersArrow && entity.inBlockID == 1)
{
blockCoord = entity.inBlockCoords
world.setBlockID(blockCoord.x+1, blockCoord.y, blockCoord.z, 76)
}
}
}